Take a look at this, I think it can be resized to achieve what you want as it rounds borders using CGPath: UIView with rounded corners
You could also do this by supporting your UIView with CAShapeLayer and setting the shape on this layer to a path created according to your angle specifications.
source share