Эх сурвалжийг харах

Merge pull request #1016 from Infomaniak/ui-fix

Hide intro view after select
Marino Faggiana 5 жил өмнө
parent
commit
2b189c6542

+ 8 - 2
iOSClient/Brand/Intro/IntroView.swift

@@ -102,11 +102,17 @@ class IntroView: UIView, UICollectionViewDataSource, UICollectionViewDelegateFlo
     }
     
     @IBAction func login(_ sender: Any) {
-        delegate?.introFinishSelector(0)
+        delegate?.introFinishSelector(Int(k_intro_login))
+        UIView.animate(withDuration: 1.7) {
+            self.alpha = 0
+        }
     }
     
     @IBAction func signup(_ sender: Any) {
-        delegate?.introFinishSelector(1)
+        delegate?.introFinishSelector(Int(k_intro_signup))
+        UIView.animate(withDuration: 1.7) {
+            self.alpha = 0
+        }
     }
     
     @IBAction func host(_ sender: Any) {