MESSENGER-3062 BuM Login flow

This commit is contained in:
Frank Rotermund
2022-09-19 12:23:07 +02:00
parent 081b8eb268
commit b56f25fb22
18 changed files with 163 additions and 21 deletions
@@ -29,7 +29,8 @@ final class LaunchLoadingView: UIView, NibLoadable, Themable {
// MARK: - Properties
@IBOutlet private weak var animationView: ElementView!
// bwi: for bum just rotate the bum image for now
@IBOutlet private weak var animationView: UIImageView!
private var animationTimeline: Timeline_1!
// MARK: - Setup
@@ -42,9 +43,26 @@ final class LaunchLoadingView: UIView, NibLoadable, Themable {
override func awakeFromNib() {
super.awakeFromNib()
self.animationView.image = Asset.Images.launchScreenLogo.image
self.animationView.layer.cornerRadius = 50
self.animationView.layer.masksToBounds = true
/*
let animationTimeline = Timeline_1(view: self.animationView, duration: LaunchAnimation.duration, repeatCount: LaunchAnimation.repeatCount)
animationTimeline.play()
self.animationTimeline = animationTimeline
*/
}
override func didMoveToSuperview() {
super.didMoveToSuperview()
let rotation: CABasicAnimation = CABasicAnimation(keyPath: "transform.rotation.z")
rotation.toValue = NSNumber(value: Double.pi * 2)
rotation.duration = 1
rotation.isCumulative = true
rotation.repeatCount = Float.greatestFiniteMagnitude
self.animationView.layer.add(rotation, forKey: "rotationAnimation")
}
// MARK: - Public