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) }
}
}
Also in Swift:
- UIFont.init bold
- parsing to double any data type in swift
- swift writing to ios logs
- swift ns_enum generic name
- swift update uilabel text button
- swift switch
- deselect all cell in collectionview
- application tried to present a nil modal view controller on target
- swiftui background color
- use alamofire to login in swift 5
- how to screen record swift stackoverflow
- predicate realm bool swift
- how to change background color of stackview swift
- sheet swiftui
- swift out of bound elelemnt
- swift set uicolor
- limit log file size swift
- if statement swfit
- xcode how to know which textfield is selected
- get device height spritekit
- how to dismiss a view when touch up inside swift
- swift ternary statement
- swift remove tableview cell
- enum from raw value swift