0

Hi I'm using this extension how to set cornerRadius for only top-left and top-right corner of a UIView? to apply rounder corners to my UIViews, however after the update to swift 3.0 the extension stopped working for UIViews that appear on top of other views.

Community
  • 1
  • 1
Slavik
  • 224
  • 3
  • 10

2 Answers2

1

Put this line right before all of your ...layer.cornerRadius = lines in your controllers:

self.view.layoutIfNeeded()
pedrouan
  • 12,762
  • 3
  • 58
  • 74
0

I had the same problem, activate 'Clip to Bounds' in the Storyboard

maddy
  • 26
  • 4