Skip to content

Instantly share code, notes, and snippets.

@scottfister
Last active April 25, 2017 04:22
Show Gist options
  • Save scottfister/06016705012043f91ab97c6dbfe7a46a to your computer and use it in GitHub Desktop.
Save scottfister/06016705012043f91ab97c6dbfe7a46a to your computer and use it in GitHub Desktop.
private var userDecks: [Deck]()
fileprivate var selectedDeck: Deck?
override func viewDidLoad() {
super.viewDidLoad()
for i in 1...3 {
let deck = Deck()
deck.title = "Deck \(i)"
userDecks.append(deck)
}
selectedDeck = userDecks.first
// ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment