Custom Triangular UICollectionviewCell In collectionview
Normally UICollectionviewcell is of rectangular box shaped and we can modify the appearance in custom UICollectionViewCell , But in my case i want the cell to be of shape triangular or any shape other than simple rectangular, How can i achieve this function? override func collectionView(collectionView: UICollectionView, cellForItemAtIndexPath indexPath: NSIndexPath) -> UICollectionViewCell { let cell = collectionView.dequeueReusableCellWithReuseIdentifier(reuseIdentifier, forIndexPath: indexPath) var path = UIBezierPath(); var mask = CAShapeLayer(); path.moveToPoint(CGPoint(x: 0,y: 0)) path