Giter Club home page Giter Club logo

toroundedwindow's Introduction

TORoundedWindow

TORoundedView

CocoaPods Version GitHub license Platform Beerpay PayPal

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.

Features

  • 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.

Examples

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];

Installation

TORoundedWindow will work with iOS 7 and above. While written in Objective-C, it should easily import into Swift as well.

Manual Installation

Copy the contents of the TORoundedWindow folder to your app project.

CocoaPods

pod 'TORoundedWindow'

Carthage

Feel free to file a PR. :)

Why build this?

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.

Credits

TORoundedWindow was created by Tim Oliver as a component of iComics.

License

TORoundedWindow is available under the MIT license. Please see the LICENSE file for more information. analytics

toroundedwindow's People

Contributors

timoliver avatar

Watchers

Carabineiro avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.