Content

struct Content : Codable, Equatable, Sendable

Insets that describe the stretchable area of the image.

  • Left inset.

    Declaration

    Swift

    public var left: Double
  • top

    Top inset.

    Declaration

    Swift

    public var top: Double
  • Right inset.

    Declaration

    Swift

    public var right: Double
  • Bottom inset.

    Declaration

    Swift

    public var bottom: Double
  • Creates a new content inset definition.

    Declaration

    Swift

    public init(left: Double, top: Double, right: Double, bottom: Double)

    Parameters

    left

    Left inset.

    top

    Top inset.

    right

    Right inset.

    bottom

    Bottom inset.

  • Declaration

    Swift

    public func encode(to encoder: Encoder) throws
  • Declaration

    Swift

    public init(from decoder: Decoder) throws