|
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. |
BUILD THE ULTIMATE PORTFOLIO APP Most Swift tutorials help you solve one specific problem, but in my Ultimate Portfolio App series I show you how to get all the best practices into a single app: architecture, testing, performance, accessibility, localization, project organization, and so much more, all while building a SwiftUI app that works on iOS, macOS and watchOS. 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:
|
TAKE YOUR SKILLS TO THE NEXT LEVEL If you like Hacking with Swift, you'll love Hacking with Swift+ – it's my premium service where you can learn advanced Swift and SwiftUI, functional programming, algorithms, and more. Plus it comes with stacks of benefits, including monthly live streams, downloadable projects, a 20% discount on all books, and free gifts!
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.