fix(creator-channel): 탭 초기 위치를 보정한다
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user