In viewDidLoad
of your controller, you can write the code for scrolling to a particular index path of collection view.
self.collectionView.scrollToItem(at:IndexPath(item: indexNumber, section: sectionNumber), at: .right, animated: false)
More Related Contents:
- uicollectionview remove top padding
- Parse ISO8601 in swift
- Split a String into an array in Swift?
- How do I make an HTTP request in Swift?
- Array extension to remove object by value
- How to count occurrences of an element in a Swift array?
- Save images in NSUserDefaults?
- Create thread safe array in Swift
- How to increase the height of navigation bar in Xcode?
- How to implement the Hashable Protocol in Swift for an Int array (a custom string struct)
- Swift default AlertViewController breaking constraints
- What is export * in module.modulemap file inside each framework?
- JSON parsing swift, array has no value outside NSURLSession
- UICollectionView header dynamic height using Auto Layout
- How to maintain presenting view controller’s orientation when dismissing modal view controller?
- Pixel Array to UIImage in Swift
- Simple and clean way to convert JSON string to Object in Swift
- ‘Receiver () has no segue with identifier ‘addSegue’
- Swift: How to open a new app when UIButton is tapped
- Removing Duplicates From Array of Custom Objects Swift
- EXC_BAD_INSTRUCTION When Passing UICollectionView Cell Data to Different ViewController
- Change button background color using swift language
- Check if optional array is empty
- SwiftUI: Set Status Bar Color For a Specific View
- How to save list of object in user Default?
- Detect if the application in background or foreground in swift
- Disable zoom in WKWebView?
- SwiftUI: Error in dragging logic or is this a bug?
- How to make iPhone vibrate using Swift?
- Find an item and change value in custom object array – Swift