mirror of
https://github.com/yattee/yattee.git
synced 2025-10-17 21:08:16 +00:00
Replace environment objects with observed objects
This commit is contained in:
@@ -4,7 +4,7 @@ struct OpenSettingsButton: View {
|
||||
@Environment(\.presentationMode) private var presentationMode
|
||||
|
||||
#if !os(macOS)
|
||||
@EnvironmentObject<NavigationModel> private var navigation
|
||||
private var navigation: NavigationModel { .shared }
|
||||
#endif
|
||||
|
||||
var body: some View {
|
||||
|
Reference in New Issue
Block a user