Swiftpack.co -  Package - tangbl93/AnimationDeamon
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
tangbl93/AnimationDeamon
Prevent animation being paused automatically
.package(url: "https://github.com/tangbl93/AnimationDeamon.git", from: "1.0.0")

AnimationDeamon

Version License Platform

中文文档

Features

Prevent looping animation from being paused in the following situations:

  • UIApplication didEnterBackground
  • UIViewController viewDidDisappear

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

iOS 9.0+

Installation

CocoaPods

Simply add the following line to your Podfile:

pod 'AnimationDeamon'

Swift Package Manager

To add a package dependency to your Xcode project, select File > Swift Packages > Add Package Dependency and enter https://github.com/tangbl93/AnimationDeamon.git to the text field.

Usage

AnimationDeamon.deamon(view: view) { (view) in
    // resume view animation
}

Author

tangbl93, tangbl93@gmail.com

License

AnimationDeamon is available under the MIT license. See the LICENSE file for more info.

GitHub

link
Stars: 0
Last commit: 1 week ago

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco