|
How I fix it ? My content is this:
The error is: Unable to present. Please file a bug. |
|
Have experienced a similar issue. See https://www.hackingwithswift.com/forums/swiftui/unable-to-present-please-file-a-bug/7846 Searching Google didn't gave any solutions. I experience this only on an iPad with a specific view I want to render; it is not happening on an iPhone. I am puzzled what this is. |
|
I have the same issue, a weird solution is given in this topic : https://developer.apple.com/forums/thread/677333 Add this with your others navigationLink :
The hack works for me. |
SPONSORED Alex is the iOS & Mac developer’s ultimate AI assistant. It integrates with Xcode, offering a best-in-class Swift coding agent. Generate modern SwiftUI from images. Fast-apply suggestions from Claude 3.5 Sonnet, o3-mini, and DeepSeek R1. Autofix Swift 6 errors and warnings. And so much more. Start your 7-day free trial today! Sponsor Hacking with Swift and reach the world's largest Swift community! |
|
Please show your entire content. If I guess at what the left out parts look like and use this, it works fine for me:
But, again, this is only a guess at what your entire content looks like. |
|
|
|
|
|
There is no |
|
The report is a bug, so it is worth filing with a sample of that code. Otherwise they may not ever fix it. As to how to fix it, try removing what you can until it works. I wonder why you have a VStack embedded in a HStack though. |
|
Nothing wrong with that, if it's what the design calls for. |
|
|
|
Please post your entire content. It's hard to reproduce an issue, let alone figure out a fix, if we aren't working with complete information. |
|
Below is how I fixed it in my scenario where I was seeing the error and not navigating to the correct view in iPhone when in landscape mode and iPad. iPhone in portrait also raised the error but still navigated correctly. The The The
|
|
I'm (now) encountering this in an application I'm writing for macOS. The truly interesting part, to me, is that when I was working on it in April of 2021 I did not have the problem. I stopped work for a while and now, in August, the same code now evidences the problem. The problem seems to lie in how the My situation: my app has three distinct classes of editable objects: people, households, and events. My UI tries to do as Xcode does, with a list of objects (grouped by type) on the left, and the appropriate editor view on the right. In the event that nothing is selected, the view just shows a prompt text, "Select something to edit." So, at launch, there's the list on the left with the objects grouped inside This suggests that there's some state within the |
|
can be skipeped in the last example, by using the following:
|
SPONSORED Alex is the iOS & Mac developer’s ultimate AI assistant. It integrates with Xcode, offering a best-in-class Swift coding agent. Generate modern SwiftUI from images. Fast-apply suggestions from Claude 3.5 Sonnet, o3-mini, and DeepSeek R1. Autofix Swift 6 errors and warnings. And so much more. Start your 7-day free trial today!
Sponsor Hacking with Swift and reach the world's largest Swift community!
This topic has been closed due to inactivity, so you can't reply. Please create a new topic if you need to.
All interactions here are governed by our code of conduct.
Link copied to your pasteboard.