Search
 
SCRIPT & CODE EXAMPLE
 

SWIFT

detect end of scroll in UICollectionView ios swift

func scrollViewDidEndDecelerating(_ scrollView: UIScrollView) {
    for cell in yourCollectionView.visibleCells {
        let indexPath = yourCollectionView.indexPath(for: cell)
        print(indexPath)
    }
}
Comment

PREVIOUS NEXT
Code Example
Swift :: use timer swift 
Swift :: swiftui navigation link with button 
Swift :: pop the view controller xcode 
Swift :: swift struct field default value 
Swift :: fizzbuzz in swift 
Swift :: rtl ios swift 
Swift :: connect old iphone with latest xcode 12 or 13 
Swift :: swiftui vstack alignment 
Swift :: prevent iphone to sleep swift 
Swift :: set color for uibutton programmatically swift 
Swift :: swift how to animate constraint change 
Swift :: remove padding hstack swiftui 
Swift :: how to call app delegate function in swift 
Swift :: fade anumation swift 
Swift :: ios swift create new background thread 
Swift :: swiftui 100 days 
Swift :: swift array contains 
Swift :: for loop swift 
Swift :: uilabel make bold 
Swift :: swift change navigation bar title 
Swift :: how to make text selectable swiftui 
Swift :: how to set return type swift 
Swift :: swift int to int32 
Swift :: swiftui line break text 
Swift :: swift reload view 
Swift :: does swift language requires mac os system 
Swift :: rotate sfsymbol horizontal flip swiftui 
Swift :: Swift Function With inout Parameters 
Swift :: Swift Print Variables and Strings together 
Swift :: code that detect input swift 
ADD CONTENT
Topic
Content
Source link
Name
4+1 =