SoundTestButton

@IBDesignable
class SoundTestButton : UIButton
  • This is the on/off state of the control. Changing it forces a redraw.

    Declaration

    Swift

    @IBInspectable
    var isOn: Bool { get set }
  • If on, then the icon will be the music icon; not the sound icon.

    Declaration

    Swift

    @IBInspectable
    var isMusic: Bool { get set }
  • Declaration

    Swift

    override func touchesBegan(_ inTouches: Set<UITouch>, with inEvent: UIEvent?)
  • Declaration

    Swift

    override func beginTracking(_ inTouch: UITouch, with inEvent: UIEvent?) -> Bool
  • Declaration

    Swift

    override func continueTracking(_ inTouch: UITouch, with inEvent: UIEvent?) -> Bool
  • Declaration

    Swift

    override func endTracking(_ inTouch: UITouch?, with inEvent: UIEvent?)
  • Declaration

    Swift

    override func touchesEnded(_ inTouches: Set<UITouch>, with inEvent: UIEvent?)
  • Declaration

    Swift

    override func draw(_ rect: CGRect)