I have a UIView with only bottom rounded corners, the code I used to achieve this is:
view.addSubview(topWhiteView) topWhiteView.anchor(top: self