Forráskód Böngészése

Hide intro view after select

Fixed regression caused by fixing #1001

Signed-off-by: Philippe Weidmann <philippe.weidmann@infomaniak.com>
Philippe Weidmann 5 éve
szülő
commit
d94bb3bacf
1 módosított fájl, 8 hozzáadás és 2 törlés
  1. 8 2
      iOSClient/Brand/Intro/IntroView.swift

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