Search
 
SCRIPT & CODE EXAMPLE
 

SWIFT

deselect all cell in collectionview

extension UICollectionView {

    func deselectAllItems(animated: Bool) {
        guard let selectedItems = indexPathsForSelectedItems else { return }
        for indexPath in selectedItems { deselectItem(at: indexPath, animated: animated) }
    }
}
Comment

PREVIOUS NEXT
Code Example
Swift :: hstack spacing swiftui 
Swift :: save file with % swift 
Swift :: undefined symbol __swift_force_load_$swift webkit react native 
Swift :: === in swift 
Swift :: Function Inside Swift Struct 
Swift :: swift 5 change message color of alert 
Swift :: parse int in swift 
Swift :: swift function declaration 
Swift :: swiftui rounded specific corner 
Swift :: swifter apply progress bar 
Swift :: swiftui selection list 
Swift :: swift hide button 
Swift :: Type Constraints Swift 
Swift :: UINavigationBar turns black 
Swift :: how to multiply numbers in array swift 
Swift :: int in swift 
Swift :: Swift Iterate Over a Set 
Swift :: swift ranges 
Swift :: continue keyword in swift language 
Swift :: swift how to dereference unsafemutablepointer 
Swift :: Swift enum Associated Values 
Swift :: Swift Labeled Statement with continue 
Swift :: swift get all cases starting with 
Swift :: Swift Nested for Loop 
Swift :: .next() enum swift 
Ruby :: ruby filename from path 
Ruby :: array ruby taking 3 last value 
Ruby :: ruby check if exists 
Ruby :: add key and value to hash ruby 
Ruby :: rails crud 
ADD CONTENT
Topic
Content
Source link
Name
5+3 =