Skip to content

Instantly share code, notes, and snippets.

@malcolmkmd
Created September 15, 2017 14:09
Show Gist options
  • Save malcolmkmd/97f049967eb73ed8e99ba575bcbb257f to your computer and use it in GitHub Desktop.
Save malcolmkmd/97f049967eb73ed8e99ba575bcbb257f to your computer and use it in GitHub Desktop.
// Labels
private lazy var timeLabel: UILabel = {
let l = UILabel()
l.textColor = .white
l.font = Theme.fonts.futuraMedium(size: 70)
let date = Date()
return l
}()
private lazy var dateLabel: UILabel = {
let l = UILabel()
l.textColor = .white
let dF = DateFormatter()
dF.dateFormat = "EEEE, dd MMMM"
let thisDay = dF.string(from: Date())
l.text = thisDay
l.font = Theme.fonts.avenirMedium(size: 25)
return l
}()
private lazy var eventTitle: UILabel = {
let l = UILabel()
l.textColor = .white
l.text = "Apple Special Honouring Steve"
l.numberOfLines = 0
l.font = Theme.fonts.avenirBlack(size: 26)
return l
}()
private lazy var eventDateLabel: UILabel = {
let l = UILabel()
l.textColor = .white
l.text = "Tomorrow at 20:00".uppercased()
l.numberOfLines = 0
l.font = Theme.fonts.avenirBlack(size: 16)
return l
}()
private lazy var eventDescriptionLabel: UILabel = {
let l = UILabel()
l.textColor = .white
l.font = Theme.fonts.avenirLight(size: 16)
l.numberOfLines = 0
l.text = "Apple will unveil the next iPhone. 10 years after the first ever iPhone."
return l
}()
private lazy var arrowBtn: UIButton = {
let b = UIButton()
b.setIcon(icon: .dripicon(.arrowThinRight), iconSize: 40, color: .white, forState: .normal)
return b
}()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment