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