Created
November 2, 2015 01:45
-
-
Save bartcone/4580b0fba93a2952a564 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extension BCTextViewCell { | |
func configure(row: Row) { | |
self.textView.text = row.text | |
} | |
} | |
extension BCTextFieldCell { | |
func configure(row: Row) { | |
self.textField.placeholder = row.text | |
} | |
} | |
extension UITableViewCell: Configurable { | |
func configure(row: Row) { | |
self.textLabel?.text = row.text | |
self.detailTextLabel?.text = row.detailText | |
self.imageView?.image = row.detailImage | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment