Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Uplift.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -902,7 +902,7 @@
ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS = NO;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 33;
CURRENT_PROJECT_VERSION = 34;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
DEVELOPMENT_TEAM = ZGMCXU7X3U;
ENABLE_PREVIEWS = YES;
Expand Down Expand Up @@ -946,7 +946,7 @@
ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS = NO;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 33;
CURRENT_PROJECT_VERSION = 34;
DEVELOPMENT_TEAM = ZGMCXU7X3U;
ENABLE_PREVIEWS = YES;
GENERATE_INFOPLIST_FILE = YES;
Expand Down
12 changes: 10 additions & 2 deletions Uplift/Views/ClassesView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,16 @@ struct ClassesView: View {
ForEach(viewModel.filteredClasses, id: \.self) { classInstance in
NavigationLink {
ClassDetailView(classInstance: classInstance, viewModel: viewModel)
.onAppear { tabBarProp.hidden = true }
.onDisappear { tabBarProp.hidden = false }
.onAppear {
withAnimation(.easeIn(duration: 0.05)) {
tabBarProp.hidden = true
}
}
.onDisappear {
withAnimation(.easeIn(duration: 0.05)) {
tabBarProp.hidden = false
}
}
} label: {
ClassCell(classInstance: classInstance, viewModel: viewModel)
}
Expand Down
6 changes: 2 additions & 4 deletions Uplift/Views/MainView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@ struct MainView: View {

var body: some View {
ZStack {
HomeView(popUpGiveaway: $viewModel.popUpGiveaway)

ZStack(alignment: .bottom) {
VStack(spacing: 0) {
switch selectedTab {
case .home:
HomeView(popUpGiveaway: $viewModel.popUpGiveaway)
Expand All @@ -32,7 +30,7 @@ struct MainView: View {
.environmentObject(tabBarProp)
}

!tabBarProp.hidden ? tabBar : nil
!tabBarProp.hidden ? tabBar.transition(.move(edge: .bottom)) : nil
}

if viewModel.popUpGiveaway {
Expand Down