Options

public struct Options

Options for configuring the behavior of the angle picker.

  • The color of the ticks.

    Declaration

    Swift

    public var tickColor: UIColor = ColorPalette.green.tint300
  • The fill color of the angle.

    Declaration

    Swift

    public var angleColor: UIColor = ColorPalette.green.tint600
  • The fill color of the background circle.

    Declaration

    Swift

    public var circleColor: UIColor = ColorPalette.grey.tint100
  • The total number of ticks to render. These ticks act as snappable hotspots, whose behavior can be configured via self.snapToThreshold and self.snapAwayThreshold.

    Declaration

    Swift

    public var numberOfTicks: Int = 24
  • The number of major ticks to render. These ticks are larger in appearance. They are evenly distributed based on the total number of ticks, rounded down.

    Declaration

    Swift

    public var numberOfMajorTicks: Int = 8
  • The direction in which the angle increases. true for clockwise, or false for counterclockwise (the default).

    Declaration

    Swift

    public var clockwise = false
  • Offset the location of 0° (and all angles) by a constant. Usually either 0 (0° = right) or 90 (0° = up), for clockwise. Defaults to 0.

    Declaration

    Swift

    public var offset: Double = 0
  • How close, in degrees, before the chosen angle should snap to a hotspot tick.

    Declaration

    Swift

    public var snapToThreshold: Double = 0
  • How far, in degrees, before the chosen angle should snap away from a hotspot tick.

    Declaration

    Swift

    public var snapAwayThreshold: Double = 5
  • Maximum allowed angle before wrapping. Usually either 360 (for 0 to 359.9) or 180 (for -179.9 to 180).

    Declaration

    Swift

    public var wrap: Double = 360