I managed to draw a rect :-) But I don\'t know how to draw a rounded rect.
Can someone help me out with the following code how to round the rect?
let
override func draw(_ rect: CGRect) { let bezierPath = UIBezierPath(roundedRect: CGRect(x: 0, y: 0, width: 40.0, height: 40.0), cornerRadius: 3.0) UIColor.yellow.setFill() bezierPath.fill() }