swift scrollview hide scrollbar
scrollView.showsHorizontalScrollIndicator = false
scrollView.showsVerticalScrollIndicator = false
swift scrollview hide scrollbar
scrollView.showsHorizontalScrollIndicator = false
scrollView.showsVerticalScrollIndicator = false
swift collectionview scrolltoitem
self.collectionView.scrollToItem(at:IndexPath(item: indexNumber, section: sectionNumber), at: .right, animated: false)
scrollview swift
//We can use the ScrollView struct in SwiftUI which allows us to scroll down
//Declaration:
struct ScrollView<Content> where Content : View
//Example of ScrollView
ScrollView {
VStack {
ForEach(0..<100) {
Text("Row \($0)")
}
}
}
}
//Let's say here, we have 100 text views. Without the scroll view, we would not be able to see all 100 text views.
//However, this is exactly what the scroll view enables us to do
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us