Post

Replies

Boosts

Views

Activity

Comment on How to preview a custom View that takes bindings as inputs in its initializer?
Thanks -- works great -- even with a more complicated type (array of custom structs)
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Mar ’22
Comment on Xcode 11 debugger error: Couldn't lookup symbols
FYI, also works for @AppStorage variables -- thanks! In my case I also had to unwrap to see the value of my string `po self._myStation.wrappedValue Thanks @lordzsolt!
Replies
Boosts
Views
Activity
Mar ’22
Comment on How to preview a custom View that takes bindings as inputs in its initializer?
If you have different views with different numbers of bound variables this solution is easier to work with than the StatefulPreviewWarpper approach below -- that's still a great solution but it's designed to support just one parameter.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jun ’22