Skip to content

vioside/VSAlertModalStatus

Repository files navigation

VSAlertModalStatus

Show iOS status alert boxes using one line of code

Swift Version Build Status License CocoaPods Compatible
Platform PRs Welcome

VSAlertModalStatus allows you to show alerts containing in image, title, and subtitle, which is animated in and shown for a few seconds until it automatically fades out. This framework aims to replicate the same look and feel as the status alert boxes used on the iOS Music app.

Features

  • Show an alert box using one line of code

Requirements

  • iOS 11.0+
  • Xcode 10.0

Installation

CocoaPods

You can use CocoaPods to install YourLibrary by adding it to your Podfile:

pod 'VSAlertModalStatus', :git => 'https://github.com/vioside/VSAlertModalStatus', :tag => '0.0.3'

To get the full benefits import YourLibrary wherever you import UIKit

import UIKit
import VSAlertModalStatus

Usage example

import VSAlertModalStatus
VSModalStatusView.displayAlertStatusIn(controller: self,
                                               image: UIImage(named: "test")!,
                                               title: "Static",
                                               subtitle: "",
                                               duration: 0.10)

Contribute

We would love you for the contribution to VSAlertModalStatus, check the LICENSE file for more info.

Meta

Vioside – @Vioside

Distributed under the MIT license. See LICENSE for more information.

https://github.com/vioside/VSAlertModalStatus