Skip to content

Conversation

@ianbecker4
Copy link

@mrflowers22

Ian Becker added 3 commits May 18, 2020 12:05
…p info sequence, in the process of building the settings screen.
…ritekit, and finished app. Will attempt stretch goals and try to turn toggle functions into single lines.
class SettingsViewController: UIViewController {

@IBAction func toggleRoll(_ sender: UISwitch) {
// If switch is on then roll

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This actually only needs one line of code. Settings.shared.shouldRoll = sender.isOn

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants