Skip to content

Commit 4d95a27

Browse files
committed
Handle preference alerts from the PlatformsListView
1 parent 2184c87 commit 4d95a27

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Xcodes/XcodesApp.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@ struct XcodesApp: App {
8181
Window("Platforms", id: "platforms") {
8282
PlatformsListView()
8383
.environmentObject(appState)
84+
.alert(item: $appState.presentedPreferenceAlert, content: { presentedAlert in
85+
alert(for: presentedAlert)
86+
})
8487
}
8588
#endif
8689
}

0 commit comments

Comments
 (0)