Post

Replies

Boosts

Views

Activity

Reply to Why does dismiss() have no impact inside a closure of NavigationDestination view?
@DTS Engineer below is the new code based on your suggestion, and I run into a new weird problem where the Button("Closure: Click to dismiss") is not responding to a click. If I remove dismiss() call, it becomes clickable. The issue is within the context of NavigationStack, not NavigationSplitView. struct Debug_ID2_Dismiss: View { @Environment(\.dismiss) private var dismiss @State private var myNavigate = false var body: some View { Button("Click to navigate") { myNavigate = true } .navigationDestination(isPresented: $myNavigate) { #if DISMISS_SUCCESSFULLY DismissButton() #else Button("Closure: Click to dismiss") { print("Dismissing ...") dismiss() print("Done dismissing") } #endif } } // body struct DismissButton: View { let SRC = "DismissButton" @Environment(\.dismiss) private var dismiss var body: some View { Button("\(SRC): Click to dismiss") { print("\(SRC): Dismissing") dismiss() print("\(SRC): Done dismissing") } } } // DismissButton } // Debug_ID2_Dismiss
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Sep ’24
Reply to Developer app does not show completed enrollment
The Developer app on my iPhone now shows " Account Holder". I posted the question prematurely, i.e., the initial enrollment went thru, but it took some time to be reviewed and completed.
Replies
Boosts
Views
Activity
Aug ’23
Reply to The build/run icon is disabled for a project in a workspace
I found the cause to this issue. When adding a project to the workspace, I need to select the file with the extension xcodeproj. Previously, I selected the project folder, and that was the reason.
Replies
Boosts
Views
Activity
Nov ’23
Reply to Where does my Swift app's print output go during XCTest?
Changed it to a comment. Please see above.
Replies
Boosts
Views
Activity
Feb ’24
Reply to @Environment(\.dismiss) var dismiss - Infinite loop bug.
I've filed a feedback report, https://feedbackassistant.apple.com/feedback/13623023.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Feb ’24
Reply to How do I see all the feedback entries submitted by myself?
In my macOS browser, the filter does not show the same options as yours
Replies
Boosts
Views
Activity
May ’24
Reply to Why does dismiss() have no impact inside a closure of NavigationDestination view?
@DTS Engineer below is the new code based on your suggestion, and I run into a new weird problem where the Button("Closure: Click to dismiss") is not responding to a click. If I remove dismiss() call, it becomes clickable. The issue is within the context of NavigationStack, not NavigationSplitView. struct Debug_ID2_Dismiss: View { @Environment(\.dismiss) private var dismiss @State private var myNavigate = false var body: some View { Button("Click to navigate") { myNavigate = true } .navigationDestination(isPresented: $myNavigate) { #if DISMISS_SUCCESSFULLY DismissButton() #else Button("Closure: Click to dismiss") { print("Dismissing ...") dismiss() print("Done dismissing") } #endif } } // body struct DismissButton: View { let SRC = "DismissButton" @Environment(\.dismiss) private var dismiss var body: some View { Button("\(SRC): Click to dismiss") { print("\(SRC): Dismissing") dismiss() print("\(SRC): Done dismissing") } } } // DismissButton } // Debug_ID2_Dismiss
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Sep ’24
Reply to Why is a macOS build for my app not available in App Store Connect?
Correction/clarification to my question: I meant I don't see the + icon next the Build label or Add Build button in the Build section.
Replies
Boosts
Views
Activity
Oct ’24
Reply to Why is a macOS build for my app not available in App Store Connect?
Enabling App Sandbox for my app in Xcode fixes the problem.
Replies
Boosts
Views
Activity
Oct ’24