Skip to content

Instantly share code, notes, and snippets.

@ilteris
Last active August 29, 2015 14:26
Show Gist options
  • Save ilteris/966bf5e733043de62665 to your computer and use it in GitHub Desktop.
Save ilteris/966bf5e733043de62665 to your computer and use it in GitHub Desktop.
class TermView: UIView {
var item: Term
convenience init(item: Term) {
self.init(frame:CGRectZero, item: item)
}
init(frame: CGRect, item: Term) {
self.item = item
super.init(frame: frame)
setupView()
}
// required init?(coder aDecoder: NSCoder) {
// fatalError("init(coder:) has not been implemented")
// }
required init?(coder aDecoder: NSCoder) {
super.init(coder: aDecoder)
setupView()
}
private func setupView() {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment