TORoundedWindow
is a UIWindow
subclass that adds rounded edges to the corners of your iOS app. It can be added at the launch of your app, and can be optionally hidden later if needed.
Rounding the corners of the screen was a standard system level UI feature of iOS all the way to iOS 7. When it launched, iOS 7 did away with the rounded corners, and introduced a very angular style, with many elements like buttons losing their borders, and images becoming square.
iOS 11 featured a very drastic change over the design language introduced in iOS 7. A large number of elements that were originally square (The dock, alerts, buttons, tabs in Music, image thumbnails) were made round, most likely to fit the aesthetic of iPhone X. With this much more 'round' iOS design language, I thought now would be a great time to bring back rounded apps.
- Can be presented with a single method call, anywhere in the app.
- The size of the corners can be configured.
- If needed, can be animated to hidden, and then animate back.
- Completely unobtrusive. Once made visible, it never needs to be touched again.
TORoundedWindow
has been designed to always be presented outside of you app content, and doesn't need to be managed beyond that.
#import "TORoundedWindow.h"
[TORoundedWindow show];
TORoundedWindow
will work with iOS 7 and above. While written in Objective-C, it should easily import into Swift as well.
Copy the contents of the TORoundedWindow
folder to your app project.
pod 'TORoundedWindow'
Feel free to file a PR. :)
To be completely honest, I was not happy at the minimal design language of iOS 7. I felt like the Retina Display was being wasted only rendering solid white for the most part.
Now that iOS 11 has started bring back in bordered buttons and is making rounded content views the norm, I'm a lot happier. UI elements with rounded corners 'feel' a lot nicer than straight up squares, and the rounding also lets the Retina Display show off how crisp it really is.
I built this library since I got VERY used to see iOS apps with rounded corners on iPhone X. To the point where using my iPad or iPhone 7 now with its square corners feels 'weird'. I made this library as an experiment to see if an app could adopt having rounded corners again, firstly to make it more in line with iPhone X, and also to revive some semblance of iOS 6.
TORoundedWindow
was created by Tim Oliver as a component of iComics.
TORoundedWindow
is available under the MIT license. Please see the LICENSE file for more information.