SwiftUI toolbar not appearing in multiplatform Core Data App template launched on iOS
Originator: | indiekiduk | ||
Number: | rdar://FB8984172 | Date Originated: | 29/1/2021 |
Status: | Closed | Resolved: | Yes |
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!
12th August 2021
Yes, it’s resolved Confirm with Version 13.0 beta 5 (13A5212g) the issue is fixed and the toolbar now appears. Just FYI there is no way to delete the list item like there is on iOS via edit button or swipe to delete. It would be nice if on macOS the template included support for deletion of list item via a delete key command when an item is selected since keyboard delete would be the expected behaviour on macOS. Alternatively I suppose a right click context menu with delete action would be ok but that would be more code for a template and demonstrating key command architecture in SwiftUI would be excellent.
Apple Feedback 3rd August 2021
Please verify this issue with Xcode 13 Beta 4 and update your bug report with your results by logging into https://feedbackassistant.apple.com/ or by using the Feedback Assistant app.
Xcode 13 Beta 4 (13A5201i) https://developer.apple.com/download/ Posted Date: July 27th, 2021
For a complete list of logging instructions visit: https://developer.apple.com/bug-reporting/profiles-and-logs/
23rd June 2021
Issue persists on Xcode 13b1