Post

Replies

Boosts

Views

Activity

SwiftUI Tutorial EditMode
In section 2 of "Working with UI Controls" the instructions state to add `@Environment(\.editMode) var mode` to the `ProfileHost` view and use that binding to show either the profile summary or the profile editor:if self.mode?.value == .inactive { ProfileSummary(profile: profile) } else { Text("Profile Editor") }When previewing the canvas in live mode it seems the `mode` variable is always nil and thus it never shows the profile editor. Tapping the edit button seems to have no effect.
6
0
6.7k
Jun ’19