Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- override func draw(_ rect: CGRect) {
- if let ctx = UIGraphicsGetCurrentContext() {
- ctx.setFillColor(UIColor.blue.cgColor)
- ctx.addEllipse(in: CGRect(x: 0, y: 0, width: 100, height: 100))
- ctx.fillPath()
- UIGraphicsEndImageContext()
- }
- }
Add Comment
Please, Sign In to add comment