Shape

public protocol Shape

The base protocol for any shape that is drawable on screen

  • draw() Default implementation

    Draw the shape

    The default implementation of this method automatically draws into the current context of SwiftGraphicsContext

    Default Implementation

    Draw the shape

    The default implementation of this method automatically draws into the current context of SwiftGraphicsContext

    Declaration

    Swift

    func draw()
  • A Rectangle that contains the receiver

    Declaration

    Swift

    var boundingBox: Rectangle { get }