/TKSwarmAlert

Animated alert library like Swarm app.

Primary LanguageSwiftMIT LicenseMIT

TKSwarmAlert

Platform Language License CocoaPods

Animation Tool for Alert like Swarm app.

ScreenShot

Demo GIF Animation

Installation

You can install this to your project via CocoaPods.

pod 'TKSwarmAlert'

Usage

import TKSwarmAlert

Show

let alert = TKSwarmAlert()
alert.show(type: TKSWBackgroundType.Blur, views: yourViews)

// If you want
alert.addNextViews(yourViews2)
alert.addNextViews(yourViews3)

Static Views

You can also add non-animated views to alert view. Please use this method before "show".

alert.addSubStaticView(yourStaticView)

Demo GIF Animation

Event Handler

alert.didDissmissAllViews = {
    println("didDissmissAllViews")
}

TKSWBackgroundType

.TransparentBlack

Demo GIF Animation

.Blur

Demo GIF Animation

.BrightBlur

Demo GIF Animation

Popup view is just a UIView.

So, you can add original view.

Demo GIF Animation