@@ -97,21 +97,21 @@ class DemoViewController: UIViewController, UICollectionViewDataSource, UIPopove
9797
9898 switch checkbox!. stateChangeAnimation {
9999 case . stroke:
100- cell. selectionButton? . setTitle ( " Stroke " , for: UIControlState ( ) )
100+ cell. selectionButton? . setTitle ( " Stroke " , for: UIControl . State ( ) )
101101 case . fill:
102- cell. selectionButton? . setTitle ( " Fill " , for: UIControlState ( ) )
102+ cell. selectionButton? . setTitle ( " Fill " , for: UIControl . State ( ) )
103103 case . bounce:
104- cell. selectionButton? . setTitle ( " Bounce " , for: UIControlState ( ) )
104+ cell. selectionButton? . setTitle ( " Bounce " , for: UIControl . State ( ) )
105105 case . expand:
106- cell. selectionButton? . setTitle ( " Expand " , for: UIControlState ( ) )
106+ cell. selectionButton? . setTitle ( " Expand " , for: UIControl . State ( ) )
107107 case . flat:
108- cell. selectionButton? . setTitle ( " Flat " , for: UIControlState ( ) )
108+ cell. selectionButton? . setTitle ( " Flat " , for: UIControl . State ( ) )
109109 case . spiral:
110- cell. selectionButton? . setTitle ( " Spiral " , for: UIControlState ( ) )
110+ cell. selectionButton? . setTitle ( " Spiral " , for: UIControl . State ( ) )
111111 case . fade:
112- cell. selectionButton? . setTitle ( " Fade " , for: UIControlState ( ) )
112+ cell. selectionButton? . setTitle ( " Fade " , for: UIControl . State ( ) )
113113 case . dot:
114- cell. selectionButton? . setTitle ( " Dot " , for: UIControlState ( ) )
114+ cell. selectionButton? . setTitle ( " Dot " , for: UIControl . State ( ) )
115115 }
116116
117117 cell. selectionButton? . addTarget ( self , action: #selector( DemoViewController . updateAnimation ( _: ) ) , for: . touchUpInside)
@@ -368,7 +368,7 @@ class DemoViewController: UIViewController, UICollectionViewDataSource, UIPopove
368368
369369
370370
371- let position : UICollectionViewScrollPosition = layout. scrollDirection == . horizontal ? . centeredHorizontally : . centeredVertically
371+ let position : UICollectionView . ScrollPosition = layout. scrollDirection == . horizontal ? . centeredHorizontally : . centeredVertically
372372 collectionView. scrollToItem ( at: indexPath, at: position, animated: true )
373373 }
374374
@@ -499,21 +499,21 @@ class DemoViewController: UIViewController, UICollectionViewDataSource, UIPopove
499499 if let cell = collectionView? . cellForItem ( at: IndexPath ( item: 1 , section: 0 ) ) as? SelectionCollectionViewCell {
500500 switch animation {
501501 case . stroke:
502- cell. selectionButton? . setTitle ( " Stroke " , for: UIControlState ( ) )
502+ cell. selectionButton? . setTitle ( " Stroke " , for: UIControl . State ( ) )
503503 case . fill:
504- cell. selectionButton? . setTitle ( " Fill " , for: UIControlState ( ) )
504+ cell. selectionButton? . setTitle ( " Fill " , for: UIControl . State ( ) )
505505 case . bounce:
506- cell. selectionButton? . setTitle ( " Bounce " , for: UIControlState ( ) )
506+ cell. selectionButton? . setTitle ( " Bounce " , for: UIControl . State ( ) )
507507 case . expand:
508- cell. selectionButton? . setTitle ( " Expand " , for: UIControlState ( ) )
508+ cell. selectionButton? . setTitle ( " Expand " , for: UIControl . State ( ) )
509509 case . flat:
510- cell. selectionButton? . setTitle ( " Flat " , for: UIControlState ( ) )
510+ cell. selectionButton? . setTitle ( " Flat " , for: UIControl . State ( ) )
511511 case . spiral:
512- cell. selectionButton? . setTitle ( " Spiral " , for: UIControlState ( ) )
512+ cell. selectionButton? . setTitle ( " Spiral " , for: UIControl . State ( ) )
513513 case . fade:
514- cell. selectionButton? . setTitle ( " Fade " , for: UIControlState ( ) )
514+ cell. selectionButton? . setTitle ( " Fade " , for: UIControl . State ( ) )
515515 case . dot:
516- cell. selectionButton? . setTitle ( " Dot " , for: UIControlState ( ) )
516+ cell. selectionButton? . setTitle ( " Dot " , for: UIControl . State ( ) )
517517 }
518518 }
519519
0 commit comments