Skip to content

developerjet/SwiftLauncher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SwiftLauncher

Swift easy app launcher animation.

Usage.

    // Twitter.
    let logoLayer = CALayer()
    logoLayer.bounds = CGRect(x: 0, y: 0, width: 100, height: 100)
    logoLayer.position = sourceView.center
    logoLayer.contents = UIImage(named: "logo")?.cgImage
    sourceView.layer.mask = logoLayer

    let shelterView = UIView(frame: sourceView.frame)
    shelterView.backgroundColor = .white
    sourceView.addSubview(shelterView)

    SwiftLauncher().config { (launcher) in
        launcher.animationStyle(style: .twitter)
        launcher.launcherLayer(layer: logoLayer)
        launcher.sourceView(view: sourceView)
        launcher.shelterView(view: shelterView)
        launcher.duration(time: 1.25)
        launcher.delay(time: 1.35)
    }.beginAnimation()

About

Swift easy app launcher animation.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages