I have a button I'm setting its corner radius like this in ViewDidLoad()
:
self.myBtn.layer.cornerRadius = self.myBtn.frame.size.height / 2
self.myBtn.layer.masksToBounds = true
The result is great on the iPhone X. Screenshot:
But for some reason in devices that has smaller screens (like iPhone SE) the corners are really sharp and the result isn't what I want to achieve. Screenshot:
Does anybody know why is it happening?
Thanks!