Created
September 8, 2017 08:18
-
-
Save nil-biribiri/a7298fda6b37c0954b90690fedf74fdd to your computer and use it in GitHub Desktop.
Remove space between each UICollectionViewCell
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Conform UICollectionViewDelegateFlowLayout first | |
| extension ViewController: UICollectionViewDelegateFlowLayout{ | |
| func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, minimumInteritemSpacingForSectionAt section: Int) -> CGFloat { | |
| return 0.0 | |
| } | |
| func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAt indexPath: IndexPath) -> CGSize { | |
| return CGSize(width: self.collectionView.bounds.width, height: self.collectionView.bounds.height) | |
| } | |
| func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, minimumLineSpacingForSectionAt section: Int) -> CGFloat { | |
| return 0.0 | |
| } | |
| } |
can you make code for slidercollectionview as give value with some milisencd delay
100% not working
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thanks man its 100% working ,,