Convert to Swift 4.0 syntax
This commit is contained in:
@@ -213,7 +213,7 @@ class SwitchesViewController: UIViewController,
|
||||
|
||||
for i in ActionCell.count ..< collectionView.numberOfItems(inSection: indexPath.section) {
|
||||
if let cell = collectionView.cellForItem(at: IndexPath(item: i, section: indexPath.section)) as? WemoDeviceCellView {
|
||||
let animOptions = UIViewAnimationOptions([.allowUserInteraction])
|
||||
let animOptions = UIView.AnimationOptions([.allowUserInteraction])
|
||||
|
||||
UIView.animate(withDuration: 0.3, delay: currentDelay, options: animOptions, animations: {
|
||||
cell.toggled = (tappedActionCell == .allOn)
|
||||
|
||||
Reference in New Issue
Block a user