0

i've created a collectionView with several cells. However i want to create a custom border where the border is one color and and rest of the sides is another color. How can i do that? So far i've just created a normal border in my cell subclass

//Cell
self.backgroundColor = UIColor.whiteColor()
self.layer.borderColor = UIColor(rgba: "#f2f2f2").CGColor
self.layer.borderWidth = 1
self.layer.masksToBounds = true
self.clipsToBounds = true
Suragch
  • 484,302
  • 314
  • 1,365
  • 1,393
Peter Pik
  • 11,023
  • 19
  • 84
  • 142

0 Answers0