Post

Replies

Boosts

Views

Activity

Reply to Xcode 15 beta 2 - SampleTrip preview does not compile
Not sure if you submitted the feedback, but the workaround for the moment is in the release notes. #Preview can’t reference symbols in Swift type extensions when they are defined in the same module as the Preview (110671628) Workaround: Revert to using PreviewProvider, or copy the implementation of the extension directly in to the #Preview itself or make it a global symbol
Jun ’23
Reply to Is it possible to create relationships between objects in previews?
Thanks! That worked. I suspected I was overlooking something obvious, and it was that I forgot the context in Previews.
Replies
Boosts
Views
Activity
Oct ’23
Reply to Problem with SwiftData
This may be related to the issue in the release notes. After deleting an item, SwiftUI may attempt to reference the deleted content during the animation causing a crash. (109838173) Workaround: Explicitly save after a delete.
Replies
Boosts
Views
Activity
Jun ’23
Reply to #Preview macro can’t find member which is added via an extension
I believe this may be related to the issue defined in the release notes. #Preview can’t reference symbols in Swift type extensions when they are defined in the same module as the Preview (110671628) Workaround: Revert to using PreviewProvider, or copy the implementation of the extension directly in to the #Preview itself or make it a global symbol
Replies
Boosts
Views
Activity
Jun ’23
Reply to Xcode 15 beta 2 - SampleTrip preview does not compile
Not sure if you submitted the feedback, but the workaround for the moment is in the release notes. #Preview can’t reference symbols in Swift type extensions when they are defined in the same module as the Preview (110671628) Workaround: Revert to using PreviewProvider, or copy the implementation of the extension directly in to the #Preview itself or make it a global symbol
Replies
Boosts
Views
Activity
Jun ’23