Open samsung-ga opened 2 years ago
ScrollView와 List에서 content offset을 주는 방법
EmptyView()
Color.clear
ScrollView(.vertical, showsIndicators: true) { EmptyView().frame(height: 50) Pallete.backgroundGray.color .frame(height: 1000) } .background(Pallete.backgroundGray.color)
List { ForEach(0..<4) {_ in HomeTossBankButton() } } .background(Pallete.backgroundGray.color) .padding(.top, 50)
ScrollView와 List에서 content offset을 주는 방법
EmptyView()
또는Color.clear
를 배치