SwiftUI CoreData template ContentView's EditButton not working properly

Originator:indiekiduk
Number:rdar://FB8458939 Date Originated:19/8/20
Status:Open Resolved:No
Product:Xcode Product Version:12b5
Classification:Bug Reproducible:Always
 
Please describe the issue:

EditButton's title doesn't change to Done when tapped. I believe ContentView is missing this:

@Environment(\.editMode) private var editMode

Please list the steps you took to reproduce the issue:
Launch Xcode 12b5.
New Project.
iOS, App, Interface SwiftUI, LifeCycle SwiftUI App, Language Swift, Use Core data checked.
Launch in iPhone SE 2nd Gen simulator.
Click Edit button in the toolbar.

What did you expect to happen?
Button title should change to Done

What actually happened?
Nothing. Adding the environment line mentioned above makes it work.

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!