fix(creator-channel): 탭 초기 위치를 보정한다

This commit is contained in:
Yu Sung
2026-08-14 12:03:00 +09:00
parent c9111fac0c
commit b3a5b8f3ae

View File

@@ -29,6 +29,9 @@ struct CreatorChannelTabBar: View {
} }
} }
} }
.onAppear {
proxy.scrollTo(selectedTab, anchor: .center)
}
.onChange(of: selectedTab) { tab in .onChange(of: selectedTab) { tab in
withAnimation { withAnimation {
proxy.scrollTo(tab, anchor: .center) proxy.scrollTo(tab, anchor: .center)