Skip to content
This repository was archived by the owner on Mar 24, 2023. It is now read-only.

swift utils ios

Eonist edited this page Mar 23, 2017 · 2 revisions

Ideas for Swift-utils for iOS

walk up the hierarchy with the bellow code: could be more succinct than the code in Element macOS

var v : UIView? = textField
repeat {v = v?.superview} while !(v is UITableViewCell || v == nil)
if let c = v as? UITableViewCell {
    // ... if we get here, c is the cell
}

TestField component:

https://www.objc.io/issues/9-strings/string-rendering/

Clone this wiki locally