mirror of
https://github.com/wahyd4/Yep.git
synced 2026-08-14 15:26:40 +10:00
feed select highlight effect
This commit is contained in:
@@ -1575,7 +1575,7 @@
|
||||
<rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<collectionView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" dataMode="prototypes" translatesAutoresizingMaskIntoConstraints="NO" id="Tuy-Vc-gDL">
|
||||
<collectionView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" delaysContentTouches="NO" dataMode="prototypes" translatesAutoresizingMaskIntoConstraints="NO" id="Tuy-Vc-gDL">
|
||||
<rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
|
||||
<collectionViewFlowLayout key="collectionViewLayout" minimumLineSpacing="10" minimumInteritemSpacing="10" id="FkS-Hc-62O">
|
||||
<size key="itemSize" width="50" height="50"/>
|
||||
|
||||
@@ -108,5 +108,17 @@ extension FeedsViewController: UICollectionViewDataSource, UICollectionViewDeleg
|
||||
|
||||
performSegueWithIdentifier("showConversation", sender: nil)
|
||||
}
|
||||
|
||||
func collectionView(collectionView: UICollectionView, didHighlightItemAtIndexPath indexPath: NSIndexPath) {
|
||||
|
||||
let cell = collectionView.cellForItemAtIndexPath(indexPath) as! FeedCell
|
||||
cell.contentView.backgroundColor = UIColor.lightGrayColor()
|
||||
}
|
||||
|
||||
func collectionView(collectionView: UICollectionView, didUnhighlightItemAtIndexPath indexPath: NSIndexPath) {
|
||||
|
||||
let cell = collectionView.cellForItemAtIndexPath(indexPath) as! FeedCell
|
||||
cell.contentView.backgroundColor = UIColor.clearColor()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user