-
Notifications
You must be signed in to change notification settings - Fork 227
contained app #216
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
contained app #216
Conversation
|
|
||
| class GameViewController: UIViewController { | ||
|
|
||
| @IBOutlet weak var skview: SKView! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are getting an error saying that is essentially saying there's no property in the class name skyview. So the compiler is looking for something named skyview.
| class SettingsViewController: UIViewController { | ||
|
|
||
| @IBAction func rollToggle(_ sender: UISwitch) { | ||
| sender.isSelected.toggle() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Take the value of the switch and assign that value to an instance variable for our class object.
| } | ||
|
|
||
| @IBAction func zoomToggle(_ sender: UISwitch) { | ||
| sender.isSelected.toggle() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Take the value of the switch and assign that value to an instance variable from our class object.
@mrflowers22