Please has anyone found a workaround for duplicate back buttons appearing on the toolbar of a ContentView launched from a DocumentGroup?
The problem occurs with Xcode 14.0 running a basic DocumentGroup App on iOS 16.0.
To reproduce, simply build a new project using the "Document App" template. Build and run in the iOS/iPadOS simulator or on an iOS/iPadOS device.
Two back buttons appear. Only one functions. I've not found a way to eliminate the dud.
This problem has occurred throughout the Xcode 14.0 beta program.
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
The sample code provided in "Building a document-based app with SwiftUI" (https://developer.apple.com/documentation/swiftui/building-a-document-based-app-with-swiftui) does not work as expected.
The DocumentGroup/StoryView toolbar does not appear for documents opened in the App.
By removing the DocumentGroupLaunchScene block from the App the toolbar does appear and works as expected - but of course the App's DocumentGroupLaunchScene customizations are lost.
I've tested this on 18.0 devices, as well as production 18.0 and 18.1 beta 6 simulators.
If I modify the StoryView by wrapping the content in a NavigationStack I can make some progress - but the results are unstable and hard to pin down - with this change the first time a document is opened in the WritingApp the toolbar appears as expected. When opening a document subsequently the toolbar is corrupted.
Please is this a bug or is there a good example of incorporate both DocumentGroupLaunchScene customizations at the App level and retina the toolbar in documents presented via DocumentGroup?
Topic:
UI Frameworks
SubTopic:
SwiftUI
WKWebView based apps crash in today's Xcode 16.4 iOS 18.5 simulator with messages including:
"Library not loaded: /usr/lib/swift/libswiftWebKit.dylib"
and of the form
"/Users/yyy/Library/Developer/Xcode/DerivedData/zzz/Build/Products/Debug-iphonesimulator/libswiftWebKit.dylib' (no such file)"