Show HN: Populating a UITableView in Swift

1 points by brotchie ↗ HN
I hacked up a quick UITableView example in XCode 6 to stretch the legs with Swift.

https://github.com/brotchie/SwiftTableView

Overall I really like the language, especially <3 the algebraic data types (enumerations) with pattern matching! After extensively using ADTs in Haskell, I really missed them in other languages...

XCode 6 Swift editing feels buggy as hell, and auto-complete only seems to work intermittently; no doubt it will improve soon.

Something that took me a while to track down: Swift's equivalent to [UITableViewCell class] is UITableViewCell.self

Cheers, James

1 comment

[ 4.1 ms ] story [ 29.2 ms ] thread