Created
April 5, 2017 05:19
-
-
Save totocaster/33a9780215476bb48bc63aadde0958ba to your computer and use it in GitHub Desktop.
WIP: Custom UIView template for Xcode
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
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