Skip to content

Instantly share code, notes, and snippets.

@scottfister
Created April 17, 2017 17:25
Show Gist options
  • Save scottfister/885de80c550a4f18ce0cce90b6cbf2dd to your computer and use it in GitHub Desktop.
Save scottfister/885de80c550a4f18ce0cce90b6cbf2dd to your computer and use it in GitHub Desktop.
extension ShareSelectViewController: UITableViewDataSource {
func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
return userDecks.count
}
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCell(withIdentifier: Identifiers.DeckCell, for: indexPath)
cell.textLabel?.text = userDecks[indexPath.row].title
cell.backgroundColor = .clear
return cell
}
}
private extension ShareSelectViewController {
struct Identifiers {
static let DeckCell = "deckCell"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment