LinePreferences

public struct LinePreferences

Line Preferences

  • Stroke height, default value is 1

    Declaration

    Swift

    public var height: CGFloat
  • Stroke color type

    Declaration

    Swift

    public var colorType: SFWConfiguration.ColorType
  • Vertical offset in slice from the center

    Declaration

    Swift

    public var verticalOffset: CGFloat
  • Initiates a line preferences

    Declaration

    Swift

    public init(colorType: SFWConfiguration.ColorType,
                height: CGFloat = 1,
                verticalOffset: CGFloat = 0)

    Parameters

    colorType

    Line color type

    height

    Stroke height, default value is 1

    verticalOffset

    Vertical offset in slice from the center, default value is 0

  • Undocumented

    Declaration

    Swift

    func strokeColor(for index: Int) -> SFWColor