SoundTestButton

@IBDesignable
class SoundTestButton : UIButton

This is a class that programmatically renders the timer sound test (sound/music) button.

It is a control, and can be used to act as a button.

Instance IB Properties

  • 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 }

Instance Superclass Overrides

  • 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)