SkillAgentSearch skills...

SwiftTableView

Basic example of using the Swift language to populate a UITableView

Install / Use

/learn @brotchie/SwiftTableView
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Simple Swift language example of populating a UITableView with data. Includes an enum type to demonstrate Swift's handling of algebraic data types.

Just a few gotchas I found while hacking on this code:

  • The swift equivalent of [UITableViewCell class] is UITableViewCell.self;
  • XCode autocomplete for protocol methods breaks when you inherit from UITableViewDelegate and UITableViewDataSource;
  • GitHub needs to add syntax highlighting for Swift :)
View on GitHub
GitHub Stars39
CategoryDevelopment
Updated2y ago
Forks7

Languages

Swift

Security Score

60/100

Audited on Jun 4, 2023

No findings