AudioKit / AudioKitUI

Controls and Visualization for AudioKit apps
MIT License
200 stars 53 forks source link

how to add NodeOutputView as a subview. It used to work before #36

Closed vittalk closed 2 years ago

vittalk commented 2 years ago

Hi, The following code used to compile and work a few months earlier (on XCode 12.5). Now, on a new mac (Monterrey and XCode 13.1) I get the following error. Any help. My AudioKit / AudioKitUI versions were set to 'main branch'. "Cannot convert value of type 'NodeOutputView?' to expected argument type 'UIView'

   var audioMic_liveView2: NodeOutputView!
   audioMic_liveView2 = NodeOutputView(self.conductor_2.tappableNodeA)
    audioMic_liveView.addSubview(audioMic_liveView2)                      <-- shows the above error
aure commented 2 years ago

You'll have to wrap the SwiftUI View (nodeOutputView) into a UIView.