// 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()
developerjet/SwiftLauncher
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Swift easy app launcher animation.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published