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

Hide intro view after select

Fixed regression caused by fixing #1001

Signed-off-by: Philippe Weidmann <philippe.weidmann@infomaniak.com>
Philippe Weidmann 5 жил өмнө
parent
commit
d94bb3bacf

+ 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) {