Commit a82c0a4d authored by Jose Blaya's avatar Jose Blaya
Browse files

Fix loading screen background

parent 4f337036
......@@ -175,8 +175,9 @@ extension AutolayoutViewController: AnimatingLoadingDelegate {
public func showLoadingAnimation() {
if graphLoad == nil {
containerView = UIView(frame: UIScreen.main.bounds)
containerView?.backgroundColor = .white
containerView?.alpha = 0.2
containerView?.backgroundColor = Theme.current.palette.appearance == .dark ?
UIColor.black.withAlphaComponent(0.72) :
UIColor.piaGrey1.withAlphaComponent(0.75)
graphLoad = LOTAnimationView(name: "pia-spinner")
adjustLottieSize()
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment