/AOModalStatusView

Create an AO Modal Status View for light actions in iOS App

Primary LanguageSwift

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.