Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[refactor/#310] 마이페이지 중복된 setTabBar 모디파이어 제거 #311

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
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,7 @@ public struct MyPageView: View {
}
.scrollIndicators(.hidden)
.background(to: ColorToken.container(.primary))
.padding(.bottom, 106)
.padding(.top, 1)
.setTabBar(selectedTab: .myPage) { selectedTab in
store.send(.selectedTabDidChanged(selectedTab))
}
.onLoad {
store.send(.onLoad)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import SwiftUI

import FeatureTabBarInterface

import SharedDesignSystem

import ComposableArchitecture

public struct MyPageRootView: View {
Expand All @@ -22,6 +24,7 @@ public struct MyPageRootView: View {
WithPerceptionTracking {
NavigationStack(path: $store.scope(state: \.path, action: \.path)) {
MyPageView(store: store.scope(state: \.myPage, action: \.myPage))
.padding(.bottom, BottleConstants.bottomTabBarHeight.value)
.setTabBar(selectedTab: .myPage) { selectedTab in
store.send(.selectedTabDidChanged(selectedTab: selectedTab))
}
Expand Down