AKBypassButton

open class AKBypassButton: UIView

Button that just access the start/stop feature of an AKNode, primarily used for playgrounds, but potentially useful in your own code.

  • Hanldes new touches

    Declaration

    Swift

    override open func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?)
  • Instatiate the button with a node and a size

    • Parameters:
      • node: Toggleable node that will be affected
      • frame: bounds of the button

    Declaration

    Swift

    public init(node: AKToggleable, frame: CGRect = CGRect(x: 0, y: 0, width: 440, height: 60))

    Parameters

    node

    Toggleable node that will be affected

    frame

    bounds of the button

  • Required initializer

    Declaration

    Swift

    required public init?(coder aDecoder: NSCoder)
  • Draw the button

    Declaration

    Swift

    override open func draw(_ rect: CGRect)