|
|
|
@ -100,10 +100,8 @@ struct MainView: View { |
|
|
|
// PadelClubView() |
|
|
|
// PadelClubView() |
|
|
|
// .tabItem(for: .padelClub) |
|
|
|
// .tabItem(for: .padelClub) |
|
|
|
} |
|
|
|
} |
|
|
|
.applyTabViewBottomAccessory(content: { |
|
|
|
.applyTabViewBottomAccessory(isVisible: (navigation.selectedTab == .activity || navigation.selectedTab == nil) && _shouldDisplaySearchStatus(), content: { |
|
|
|
if (navigation.selectedTab == .activity || navigation.selectedTab == nil) && _shouldDisplaySearchStatus() { |
|
|
|
_searchBoxView() |
|
|
|
_searchBoxView() |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}) |
|
|
|
}) |
|
|
|
.sheet(isPresented: $presentFilterView) { |
|
|
|
.sheet(isPresented: $presentFilterView) { |
|
|
|
TournamentFilterView(federalDataViewModel: federalDataViewModel) |
|
|
|
TournamentFilterView(federalDataViewModel: federalDataViewModel) |
|
|
|
@ -357,10 +355,10 @@ struct MainView: View { |
|
|
|
|
|
|
|
|
|
|
|
fileprivate extension View { |
|
|
|
fileprivate extension View { |
|
|
|
@ViewBuilder |
|
|
|
@ViewBuilder |
|
|
|
func applyTabViewBottomAccessory<Content: View>( |
|
|
|
func applyTabViewBottomAccessory<Content: View>(isVisible: Bool, |
|
|
|
@ViewBuilder content: () -> Content |
|
|
|
@ViewBuilder content: () -> Content |
|
|
|
) -> some View { |
|
|
|
) -> some View { |
|
|
|
if #available(iOS 26.0, *) { |
|
|
|
if #available(iOS 26.0, *), isVisible { |
|
|
|
self.tabViewBottomAccessory { |
|
|
|
self.tabViewBottomAccessory { |
|
|
|
content() |
|
|
|
content() |
|
|
|
} |
|
|
|
} |
|
|
|
|