Created
June 19, 2016 08:53
-
-
Save ksmandersen/97e58655af5e6657a143051d487fc2a0 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
class AwesomeView: GenericView { | |
let bestTitleLabel: UILabel = { | |
let label = UILabel() | |
label.textAlignment = .Center | |
label.textColor = .purpleColor() | |
return label | |
}() | |
let otherTitleLabel: UILabel = { | |
let label = UILabel() | |
label.textAlignment = .Left | |
label.textColor = .greenColor() | |
return label | |
}() | |
override func configureView() { | |
super.configureView() | |
addSubview(bestTitleLabel) | |
addSubview(otherTitleLabel) | |
// Configure constraints | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment