Giter VIP home page Giter VIP logo

aomodalstatusview's Introduction

AOModalStatusView

Create an AO Modal Status View for light actions in iOS Apps.

AO Modal Status View is a framework created to recreate Apple's private Modal Status View.

While designing iOS apps we may want to alert the user to a successful completion of a task. Many different methods have arrived to do just this, from a subtle drop down notification covering the status bar to a more interfering UIAlertView.

Apple's solution is to display a self-removing and small modal view to the screen.

text

With uses in the News app, the Apple Music app, and the Podcasts app, developers have been wanting access to this view for a while now. That is what this framework solves.

Design

The animation lasts two seconds, but I had trouble getting the gif to perform at the correct speed.

Instructions

Simply import the framework and add the following code to get started.

let modalView = AOModalStatusView(frame: self.view.bounds)
view.addSubview(modalView)

Further customize the AOModalStatusView with the following functions:

modalView.set(image: downloadImage)
modalView.set(headline: "Downloaded")
modalView.set(subheading: "The photo was successfully saved to your library")

Features

Animations

The AOModalStatusView will appear and disappear with a fast fading and scaling effect to match Apple's implementation.

Timer

The AOModalStatusView will only appear for a couple seconds so as not to interfere with the UX of your app.

Style

The AOModalStatusView is designed to match the style and aesthetics of Apple's implementation.

This includes slightly rounded corners, a blurred visual effects view as the background, heading and subheading options in addition to an image, and placement in the center of the view. The animations were designed to match Apple's original design.

aomodalstatusview's People

Contributors

alecdoconnor avatar

Watchers

 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.