How can I implement rounded corners applied to the whole view as seen on screenshot (note that both navigation bar and keyboard corners are rounded)?
I've tried setting cornerRadius = 10
and masksToBounds = YES
for both window.layer
and window.rootViewController.view.layer
, but only the bottom view corners are getting rounded, the navigation bar still stays square.
Update.
Setting cornerRadius
to a window.layer
actually adds rounded corners to the top too, but those corners are not visible under the status bar unless cornerRadius
is greater then 20.