Layout fixes

This commit is contained in:
Arkadiusz Fal
2022-11-12 02:39:44 +01:00
parent eb1e440ed2
commit eb9924bd4a
8 changed files with 117 additions and 102 deletions

View File

@@ -84,6 +84,16 @@ struct ContentView: View {
.environmentObject(navigation)
}
)
.background(
EmptyView().sheet(isPresented: $navigation.presentingSettings) {
SettingsView()
.environmentObject(accounts)
.environmentObject(instances)
.environmentObject(settings)
.environmentObject(navigation)
.environmentObject(player)
}
)
#if !os(tvOS)
.fileImporter(
isPresented: $navigation.presentingFileImporter,
@@ -134,16 +144,6 @@ struct ContentView: View {
.environmentObject(playlists)
}
)
.background(
EmptyView().sheet(isPresented: $navigation.presentingSettings) {
SettingsView()
.environmentObject(accounts)
.environmentObject(instances)
.environmentObject(settings)
.environmentObject(navigation)
.environmentObject(player)
}
)
#endif
.background(
EmptyView().sheet(isPresented: $navigation.presentingOpenVideos) {