Relative Content

Tag Archive for swiftxcode

Same sheet presented no matter input given (Xcode)

I am trying to have a list which displays all RoundRow’s and depending on which is clicked, a sheet is presented. The problem is no matter which row you click, the same sheet is always presented.

#Preview with CHHapticEngine in Swift/Xcode

I have a view ButtonView with a @Binding var engine: CHHapticEngine?. I call it from my other views with ButtonView(engine: $engine), but I can’t seem to work out how to call it from #Preview so the canvas will work.