|
@@ -41,8 +41,11 @@ struct MainView: View {
|
|
|
}
|
|
}
|
|
|
.frame(maxWidth: .infinity, maxHeight: .infinity, alignment: .topLeading)
|
|
.frame(maxWidth: .infinity, maxHeight: .infinity, alignment: .topLeading)
|
|
|
.frame(maxWidth: .infinity, maxHeight: .infinity)
|
|
.frame(maxWidth: .infinity, maxHeight: .infinity)
|
|
|
- .background(AppTheme.background)
|
|
|
|
|
- .ignoresSafeArea(edges: .top)
|
|
|
|
|
|
|
+ .background {
|
|
|
|
|
+ AppTheme.background
|
|
|
|
|
+ .ignoresSafeArea(edges: .top)
|
|
|
|
|
+ .allowsHitTesting(false)
|
|
|
|
|
+ }
|
|
|
.environment(\.onSettingsTapped, viewModel.showSettings)
|
|
.environment(\.onSettingsTapped, viewModel.showSettings)
|
|
|
.environment(\.requirePremiumAccess, {
|
|
.environment(\.requirePremiumAccess, {
|
|
|
if subscriptions.hasPremiumAccess { return true }
|
|
if subscriptions.hasPremiumAccess { return true }
|
|
@@ -53,7 +56,9 @@ struct MainView: View {
|
|
|
.background {
|
|
.background {
|
|
|
AppTheme.background
|
|
AppTheme.background
|
|
|
.ignoresSafeArea(edges: .top)
|
|
.ignoresSafeArea(edges: .top)
|
|
|
|
|
+ .allowsHitTesting(false)
|
|
|
}
|
|
}
|
|
|
|
|
+ .windowTitleBarAccessory()
|
|
|
.overlay {
|
|
.overlay {
|
|
|
if viewModel.isShowingPaywall {
|
|
if viewModel.isShowingPaywall {
|
|
|
PaywallView(onClose: viewModel.hidePaywall)
|
|
PaywallView(onClose: viewModel.hidePaywall)
|