In Apple's examples for customizing UINavigationBar
, they demonstrate the possibility of extending the navigation bar for additional functionality by covering the bottom of the bar and recreating its drop shadow.
https://developer.apple.com/library/ios/samplecode/NavBar/Introduction/Intro.html
I'm looking to do this, but with a curved extension. In other words, a semi-circle to make the entire UINavigationBar
seem like it were a section of a big circle. See attached:
The only way I've thought about possibly doing this so far is to make a very large but contained UIView
with a large corner radius to emulate this curve. I did a test, but found that when the size of a UIView
exceeds a certain size threshold/ratio, the edges start to distort and it looks as awful as it is inefficient and strange to have a massive but clipped UIView
.
Since device sizes vary and screen-orientation changes needs to be animated without the curve distorting, is there any way to possibly produce this sort of curved UINavigationBar
?