Skip to content

SwiftUI knob and toggle for use with AUv3 components. Uses The Composable Architecture by Point-Free

License

Notifications You must be signed in to change notification settings

bradhowes/AUv3Controls

Repository files navigation

CI COV

AUv3Controls

SwiftUI knob and toggle controls for use with AUv3 components. Uses the excellent Composable Architecture for Swift by Point-Free.

The controls are attached to AUParameter entities, so changes in the control will affect their associated AUParameter value. This works the other way as well: external changes to the AUParameter -- say from a MIDI controller or preset load -- will be reflected in the control. Below is a demonstration on iOS:

And below shows rendering on macOS:

Controls

There is a circular knob that acts like a vertical slider. It normally shows the setting's name, but when being manipulated it shows the current value.

  • Vertical dragging changes the value of the knob
  • Moving horizontally away from the center of the knob will increase resolution of vertical movements
  • Touching the title will show an editor to allow typing a value
  • When present, uses ScrollViewProxy to make sure that the editor is visible when it appears

The toggle view just works on boolean values:

Here is a combination of several knobs into two distinct groups. The groups are embedded in a scroll view so as to operate under narrow device width constrains:

About

SwiftUI knob and toggle for use with AUv3 components. Uses The Composable Architecture by Point-Free

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published