Skip to content

Instantly share code, notes, and snippets.

@totocaster
Created April 5, 2017 05:19
Show Gist options
  • Save totocaster/33a9780215476bb48bc63aadde0958ba to your computer and use it in GitHub Desktop.
Save totocaster/33a9780215476bb48bc63aadde0958ba to your computer and use it in GitHub Desktop.
WIP: Custom UIView template for Xcode
class <#CustomView#>: UIView {
override init(frame: CGRect) {
super.init(frame: frame)
setup()
}
required init?(coder aDecoder: NSCoder) {
super.init(coder: aDecoder)
setup()
}
func setup() {
translatesAutoresizingMaskIntoConstraints = false
configureViewHierarchy()
}
func configureViewHierarchy() {
}
override var intrinsicContentSize: CGSize {
return <#CGSize#>
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment