mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-05-01 21:56:58 +02:00
MESSENGER-3062 BuM Login flow
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user