I\'ve got a pretty simple custom subclass of UIView:
#import \"BarView.h\" #import @implementation BarView @synthesize barColor
In Swift 5
override init(frame: CGRect) { super.init(frame: frame) contentMode = UIView.ContentMode.redraw