Created
March 14, 2018 17:25
-
-
Save Quaggie/7bd5835d1215f4890bdc2a9e0aa36e80 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
private let imgView: UIImageView = { | |
let iv = UIImageView() | |
iv.translatesAutoresizingMaskIntoConstraints = false | |
iv.contentMode = .scaleAspectFit | |
iv.clipsToBounds = true | |
return iv | |
}() | |
private let titleLabel: UILabel = { | |
let label = UILabel() | |
label.translatesAutoresizingMaskIntoConstraints = false | |
label.font = UIFont.boldSystemFont(ofSize: 18) | |
label.lineBreakMode = .byTruncatingTail | |
return label | |
}() | |
private let subtitleLabel: UILabel = { | |
let label = UILabel() | |
label.translatesAutoresizingMaskIntoConstraints = false | |
label.font = UIFont.italicSystemFont(ofSize: 14) | |
return label | |
}() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment