Skip to content

Instantly share code, notes, and snippets.

@codedeman
Created July 30, 2022 01:30
Show Gist options
  • Save codedeman/73727ebdb40cdc16c689cab65de517b1 to your computer and use it in GitHub Desktop.
Save codedeman/73727ebdb40cdc16c689cab65de517b1 to your computer and use it in GitHub Desktop.
DecorateView
override func awakeFromNib() {
super.awakeFromNib()
self.vMain.backgroundColor = .white
self.vBoard.layer.cornerRadius = 10
self.vBoard.clipsToBounds = true
self.vMain.layer.cornerRadius = 10
self.vMain.clipsToBounds = true
self.vMain.layer.borderColor = UIColor(red: 242/255, green: 242/255, blue: 242/255, alpha: 1).cgColor
self.vMain.layer.borderWidth = 1
self.lblTitle.textColor = .black
self.lblSubtitle.textColor = .black
self.ivFilm.layer.cornerRadius = 10
self.ivFilm.clipsToBounds = true
self.btnBooking.layer.cornerRadius = 5
self.btnBooking.clipsToBounds = true
// Initialization code
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment