AudioKit / AudioKitUI

Controls and Visualization for AudioKit apps
MIT License
187 stars 52 forks source link

Impliment updateUIView for KeyboardWidget #22

Closed emurray2 closed 2 years ago

emurray2 commented 2 years ago

These changes allow the wrapped KeyboardView to update certain properties through SwiftUI when needed.

This will partially help with AudioKit/Cookbook#1, but I also need to update the Cookbook examples using KeyboardWidget().

Edit: The KeyboardWidgetSettings class was not needed to publish changes when the view is updated. I just realized SwiftUI does that automatically when a @State var is passed into the KeyboardWidget class.