Easily add animated icons/emoji/images, similar to the Periscope floating hearts effect.
[ Updated for Swift 4 ]
Usage is as easy as:
@IBOutlet weak var floaterView: Floater!
@IBAction func startTapped(sender: AnyObject) {
floaterView.startAnimation()
}
@IBAction func endTapped(sender: AnyObject) {
floaterView.stopAnimation()
}
// Change the density like ... ( look at example )
floaterView.density = 25
Take a look at the project to see a full example.
- iOS 8 or later
- Xcode 6 or later
Razvigor Andreev - helpMeCodeSwift @ Twitter http://helpMeCodeSwift.com
iOS Floaters is available under the MIT license. See the LICENSE file for more info.