https://github.com/takuoka/TKSwarmAlert
Animated alert library like Swarm app.
https://github.com/takuoka/TKSwarmAlert
animation-library swift
Last synced: 11 months ago
JSON representation
Animated alert library like Swarm app.
- Host: GitHub
- URL: https://github.com/takuoka/TKSwarmAlert
- Owner: takuoka
- License: mit
- Created: 2015-08-20T11:27:15.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2019-03-30T23:20:14.000Z (about 7 years ago)
- Last Synced: 2025-07-01T19:07:57.986Z (12 months ago)
- Topics: animation-library, swift
- Language: Swift
- Homepage:
- Size: 31.4 MB
- Stars: 581
- Watchers: 15
- Forks: 56
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-ios - TKSwarmAlert - Animated alert library like Swarm app. (UI / Alert & Action Sheet)
README
# TKSwarmAlert
[](https://github.com/Carthage/Carthage)
[](https://developer.apple.com/iphone/index.action)
[](https://developer.apple.com/swift)
[](http://mit-license.org)
[]()
Animation Tool for Alert like [Swarm](https://swarmapp.com/) app.
# ScreenShot

# Installation
#### CocoaPods
You can use [CocoaPods](http://cocoapods.org/) to install `TKSwarmAlert` by adding it to your `Podfile`:
```ruby
platform :ios, '8.0'
use_frameworks!
pod 'TKSwarmAlert'
```
To get the full benefits import `TKSwarmAlert` wherever you import UIKit
``` swift
import UIKit
import TKSwarmAlert
```
#### Carthage
Create a `Cartfile` that lists the framework and run `carthage bootstrap`. Follow the [instructions](https://github.com/Carthage/Carthage#if-youre-building-for-ios) to add `$(SRCROOT)/Carthage/Build/iOS/YourLibrary.framework` to an iOS project.
```
github "entotsu/TKSwarmAlert"
```
#### Manually
1. Download and drop ```YourLibrary.swift``` in your project.
2. Congratulations!
# Usage
``` swift
import TKSwarmAlert
```
## Show
``` swift
let alert = TKSwarmAlert()
alert.show(type: .BrightBlur, views: [yourViews1, yourViews2, yourViews3])
```
## Static Views
You can also add non-animated views to alert view.
Please use this method before "show".
``` swift
alert.addSubStaticView(yourStaticView)
```

## Event Handler
``` swift
alert.didDissmissAllViews = {
println("didDissmissAllViews")
}
```
# TKSWBackgroundType
## .TransparentBlack

## .Blur

## .BrightBlur

# Kind of Blur
* branch `master` -> UIVisualEffectView
* branch `DynamicBlur` -> DynamicBlurView (beautiful but unstable)
# Popup view is just a UIView.
So, you can add original view.
