SwiftUI toolbar not appearing in multiplatform Core Data App template launched on iOS

Originator:indiekiduk
Number:rdar://FB8984172 Date Originated:29/1/2021
Status:Open Resolved:No
Product:Xcode Product Version:12.4
Classification:Bug Reproducible:Always
 
When creating a new multi-platform App template, with Core Data enabled. If launched on iOS, e.g. iPhone Simulator the toolbar does not appear. Launching it on macOS does not have the problem.

Some forum links:
https://www.hackingwithswift.com/forums/swiftui/toolbar-not-working-from-app-template/5481
"@ShadowDES  
Dec 25
Yes, putting it in a navigation view and changing the .toolbar to your code works. I don't understand why Apple would put out a template that doesn't work at all (I've seen it before, just baffles me)."

https://developer.apple.com/forums/thread/661950
"The template in Xcode 12.2 beta produces a blank white screen on iOS"
Posted 4 months ago by davidcc  

Please list the steps you took to reproduce the issue:
1. Launch Xcode.
2. File->New Project->Multiplatform->App->Next->Name: Test App->Check "Use Core Data"->Next->Create
3. In the windows, title bar, select Test App (iOS)->iOS Simulators->iPhone 12 mini
4. Click the build and run play button.

What did you expect to happen?
A toolbar with a plus button should appear on the screen.

What actually happened?
The screen is blank.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!