Post

Replies

Boosts

Views

Activity

Reply to How should I access @AppStorage and @SceneStorage values outside of views?
I just stumbled across this question. I know this is an old thread, but I know the answer for AppStorage. AppStorage is just a more convenient way of writing to UserDefaults. When you're not in a View just use the standard functions for dealing with UserDefaults (UserDefaults.standard.value, UserDefaults.standard.string, etc). I know this works because when I rewrote my app's UI in SwiftUI I had my Views use AppStorage but my underlying, non-view code I left untouched that was using UserDefaults.standard and it continued to work. Just make sure to use the same name in both places.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Dec ’21
Reply to Unable to present. Please file a bug.
Same for me with erratic behavior. I upgraded to Big Sur 11.3.1 and didn't see it happen on my iPhone. Thinking it was fixed I made a TestFlight of the app I'm building and the first other iPhone I try it on has the problem. I had to expire the build and am still stuck.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
May ’21
Reply to Unable to present. Please file a bug.
I made a super simple test project to try and recreate it. Put it on my phone and it didn't happen. I then recompiled my app and put it on my phone and it didn't happen. The only difference between the last time I tried is that I upgraded Big Sur to 11.3.1. Then uploaded a TestFlight and on that person's iPhone 11 the problem always happens. When I try to update the View it dismisses the current View reached via Navigationlink. I'm seriously confused.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
May ’21
Reply to SiriTipView showing ${APPLICATIONNAME} instead of my app's name.
My app language is set to system language. I switch between that and German.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Sep ’22
Reply to Xcode 14: Publishing changes from within view updates
Found an interesting blog post about this. https://www.donnywals.com/xcode-14-publishing-changes-from-within-view-updates-is-not-allowed-this-will-cause-undefined-behavior/
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Sep ’22
Reply to SiriTipView showing ${APPLICATIONNAME} instead of my app's name.
I have now tested on an iPhone running iOS 16 beta 8 using Xcode 14 beta 6. The problem is still happening. The app name is populated correctly in the shortcut in the Shortcuts app. I can use the phrase with the app name when I ask Siri to run the new shortcut. SiriTipView still shows ${APPLICATIONNAME} in my phrase.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Sep ’22
Reply to Xcode 14: Publishing changes from within view updates
That's my scenario also (sheet).
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Aug ’22
Reply to How should I access @AppStorage and @SceneStorage values outside of views?
I just stumbled across this question. I know this is an old thread, but I know the answer for AppStorage. AppStorage is just a more convenient way of writing to UserDefaults. When you're not in a View just use the standard functions for dealing with UserDefaults (UserDefaults.standard.value, UserDefaults.standard.string, etc). I know this works because when I rewrote my app's UI in SwiftUI I had my Views use AppStorage but my underlying, non-view code I left untouched that was using UserDefaults.standard and it continued to work. Just make sure to use the same name in both places.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Dec ’21
Reply to Unable to present. Please file a bug.
This problem finally stopped happening for me with the RC of Xcode and iOS 15.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Sep ’21
Reply to Unable to present. Please file a bug.
I tried to get a WWDC lab about this issue but the request was rejected.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jul ’21
Reply to Unable to present. Please file a bug.
Same for me with erratic behavior. I upgraded to Big Sur 11.3.1 and didn't see it happen on my iPhone. Thinking it was fixed I made a TestFlight of the app I'm building and the first other iPhone I try it on has the problem. I had to expire the build and am still stuck.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
May ’21
Reply to Unable to present. Please file a bug.
I made a super simple test project to try and recreate it. Put it on my phone and it didn't happen. I then recompiled my app and put it on my phone and it didn't happen. The only difference between the last time I tried is that I upgraded Big Sur to 11.3.1. Then uploaded a TestFlight and on that person's iPhone 11 the problem always happens. When I try to update the View it dismisses the current View reached via Navigationlink. I'm seriously confused.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
May ’21
Reply to Unable to present. Please file a bug.
@bob_mosh, does your app work fine in the simulator? Mine does. You described almost exactly what I'm hitting.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
May ’21