Skip to content

Instantly share code, notes, and snippets.

View akashgupta88's full-sized avatar

Akash Gupta akashgupta88

  • Agoda
  • Bangkok, Thailand
View GitHub Profile
@JaviLorbada
JaviLorbada / FRP iOS Learning resources.md
Last active October 30, 2025 15:45
The best FRP iOS resources.

Videos

@nor0x
nor0x / shadow+cornerradius.swift
Created December 22, 2016 17:23
UICollectionViewCell -> Corner Radius AND Shadow
func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell {
cell.contentView.layer.cornerRadius = 2.0
cell.contentView.layer.borderWidth = 1.0
cell.contentView.layer.borderColor = UIColor.clear.cgColor
cell.contentView.layer.masksToBounds = true;
cell.layer.shadowColor = UIColor.lightGray.cgColor
cell.layer.shadowOffset = CGSize(width:0,height: 2.0)
cell.layer.shadowRadius = 2.0
cell.layer.shadowOpacity = 1.0