- iOS 9.0+
- macOS 10.11+
- tvOS 9.0+
A delegate is optional. If a delegate is provided, it is called instead of the
draw(_:) method whenever the view’s contents need to be drawn. You should either provide a delegate or subclass the view to override the
draw(_:) method, but not both.