I have a textview below a tableView, both same Backgroundcolor so it appears as if its one View. Now I want the bottom corners of the textview to be rounded, but not the top ones (cause then you could see a gap between the textview and tableview). I found some answers on here, but somehow it just makes the bottom left corner rounded, not the right one? I also tried changing the order inside the Array, didn't work. Then I tried just the left corner, worked. But only the right corner didn't work?! Here is what I have at the moment
let rectShape = CAShapeLayer()
rectShape.bounds = self.eventDescription.frame
rectShape.position = self.eventDescription.center
rectShape.path = UIBezierPath(roundedRect: self.eventDescription.bounds, byRoundingCorners: [.BottomLeft, .BottomRight], cornerRadii: CGSize(width: 20, height: 20)).CGPath
self.eventDescription.layer.mask = rectShape
Working code for me just check the constraints which you have added.