PatternAppearance

public struct PatternAppearance : Equatable

Line pattern appearance.

  • The line pattern properties. By default no pattern is used (i.e. a solid pattern).

    Declaration

    Swift

    public var linePattern: LinePattern?
  • Color to use for gaps in the line pattern.

    Declaration

    Swift

    public var gapColor: UIColor?
  • List of scene levels with corresponding line gap colors.

    Declaration

    Swift

    public var gapColorForScenes: [SceneLevel : UIColor]
  • Length of a single dash in the pattern.

    Declaration

    Swift

    public var dashLength: Double?
  • List of scene levels with corresponding dash lengths.

    Declaration

    Swift

    public var dashLengthForScenes: [SceneLevel : DashLengthUnits]
  • Length of a single pattern repeat.

    Declaration

    Swift

    public var patternLength: Double?
  • List of scene levels with corresponding pattern lengths.

    Declaration

    Swift

    public var patternLengthForScenes: [PatternLengthScene]?
  • Set a pattern offset for the pattern at the beginning of the line. The pattern begin offset specifies the starting position of the pattern. By default, the offset is zero, which means the pattern starts at the beginning of the line. When the pattern offset is smaller than zero or larger than the pattern length, the line builder uses the supplied value modulus the pattern length as the pattern offset.

    Declaration

    Swift

    public var patternBeginOffset: Double?
  • List of scene levels with corresponding pattern offset values.

    Declaration

    Swift

    public var patternBeginOffsetForScenes: [PatternBeginOffsetScene]?
  • Sets the the pattern texture image.

    Important

    The pattern texture has a higher priority than any other option.

    Important

    This is a Public Preview API. It may be changed or removed at any time.

    Declaration

    Swift

    public var patternTexture: UIImage?