Skip to content

polemk/TKSwarmAlert

 
 

Repository files navigation

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

About

Animated alert library like Swarm app.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Swift 88.8%
  • Ruby 11.2%