Shape
public protocol Shape
The base protocol for any shape that is drawable on screen
-
draw()Default implementationDraw the shape
The default implementation of this method automatically draws into the current context of
SwiftGraphicsContextDefault Implementation
Draw the shape
The default implementation of this method automatically draws into the current context of
SwiftGraphicsContextDeclaration
Swift
func draw() -
A Rectangle that contains the receiver
Declaration
Swift
var boundingBox: Rectangle { get }
View on GitHub
Shape Protocol Reference