|
|
@@ -13,7 +13,13 @@ struct MainView: View {
|
|
|
} else {
|
|
|
HStack(spacing: 0) {
|
|
|
SidebarView(
|
|
|
- selectedDestination: $viewModel.selectedDestination,
|
|
|
+ selectedDestination: Binding(
|
|
|
+ get: { viewModel.selectedDestination },
|
|
|
+ set: { destination in
|
|
|
+ viewModel.selectedDestination = destination
|
|
|
+ viewModel.hideSettings()
|
|
|
+ }
|
|
|
+ ),
|
|
|
isPremium: subscriptions.hasPremiumAccess,
|
|
|
onUpgradeTapped: viewModel.showPaywall,
|
|
|
onManageSubscriptionTapped: viewModel.showPaywall
|