WheelPreferences
struct WheelPreferences
Wheel preferences
-
Circle preferences
Declaration
Swift
public var circlePreferences: CirclePreferences
-
Slice preferences
Declaration
Swift
public var slicePreferences: SlicePreferences
-
Start position, should be equal to FortuneWheelConfiguration.pinPreferences.position
Declaration
Swift
public var startPosition: Position
-
Layer insets, used to center the drawing such that offseted graphics(e.g Shadows, Outer Glows) are not clipped. Can be increased to any size if needed. Default value is
UIEdgeInsets(top: -50, left: -50, bottom: -50, right: -50)
Declaration
Swift
public var layerInsets: SFWEdgeInsets
-
Margins for content inside a slide
Declaration
Swift
public var contentMargins: Margins
-
Image anchor for each slice, located at the wheel’s border,
optional
Declaration
Swift
public var imageAnchor: AnchorImage?
-
Image anchor for each slice, located at the center of wheel’s border,
optional
Declaration
Swift
public var centerImageAnchor: AnchorImage?
-
Undocumented
Declaration
Swift
var layerInsetsWithCircleWidth: SFWEdgeInsets { get }
-
Initiates a wheel preferences
Declaration
Swift
public init(circlePreferences: CirclePreferences, slicePreferences: SlicePreferences, startPosition: Position)
Parameters
circlePreferences
Circle preferences
slicePreferences
Slice preferences
startPosition
Start position, should be equal to FortuneWheelConfiguration.pinPreferences.position