WheelLayer

class WheelLayer : CALayer
extension WheelLayer: SliceDrawing
extension WheelLayer: SpinningAnimatable

Wheel layer

  • Customizable preferences. Required in order to draw properly.

    Declaration

    Swift

    var preferences: SFWConfiguration.WheelPreferences?
  • List of Slice objects. Used to draw content.

    Declaration

    Swift

    var slices: [Slice]
  • Main frame with inserts.

    Declaration

    Swift

    var mainFrame: CGRect!
  • Initiates without IB.

    Declaration

    Swift

    init(frame: CGRect, slices: [Slice], preferences: SFWConfiguration.WheelPreferences?)

    Parameters

    frame

    Frame

    slices

    List of Slices

    configuration

    Customizable configuration

  • Undocumented

    Declaration

    Swift

    override init(layer: Any)
  • Undocumented

    Declaration

    Swift

    required init?(coder aDecoder: NSCoder)
  • Undocumented

    Declaration

    Swift

    override func draw(in ctx: CGContext)
  • Undocumented

    Declaration

    Swift

    override var masksToBounds: Bool { get set }
  • Draws the wheel with slices in canvas

    Declaration

    Swift

    func drawCanvas(with frame: CGRect)

    Parameters

    frame

    Draws with frame