Skip to content

yoavlt/TKSwarmAlert

 
 

Repository files navigation

TKSwarmAlert

Carthage compatible Platform Language License CocoaPods

Animation Tool for Alert like Swarm app.

ScreenShot

Demo GIF Animation

Installation

pod 'TKSwarmAlert'
github "entotsu/TKSwarmAlert"

Usage

import TKSwarmAlert

Show

let alert = TKSwarmAlert(backgroundType: .Blur)
alert.show(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

Kind of Blur

  • branch master -> UIVisualEffectView
  • branch DynamicBlur -> DynamicBlurView (beautiful but unstable)

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 85.9%
  • Ruby 12.9%
  • Objective-C 1.2%