YaroslavZhurbilo
12/17/2018 - 9:26 AM

Example of layoutSubviews()

// Allow view to control itself
public override func layoutSubviews() {
    // Rounded corners
    self.layoutIfNeeded()
    self.contentView.layer.masksToBounds = true
    self.contentView.clipsToBounds = true
    self.contentView.layer.cornerRadius = 10
}