Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. @IBOutlet weak var emailText: UITextField!
  2.  
  3. @IBOutlet weak var passwordText: UITextField!
  4.  
  5.  
  6. @IBOutlet weak var segmentCOntrol: UISegmentedControl!
  7.  
  8. @IBOutlet weak var actionLogin: UIButton!
  9.  
  10. @IBAction func ActionLogin(_ sender: UIButton) {
  11. if emailText.text != "" && passwordText.text != "" {
  12.  
  13. if segmentCOntrol.selectedSegmentIndex == 0 { //login eser
  14. Auth.auth().signIn(withEmail: emailText.text!, password: passwordText.text!) { (user, error) in
  15. if user != nil {
  16. }
  17. }
  18. else {
  19. }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement