Skip to content

Commit

Permalink
become first responder change
Browse files Browse the repository at this point in the history
  • Loading branch information
Geoffrey Liu committed Mar 11, 2022
1 parent 458dcd3 commit c35800c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions WordleWithFriends/GameSetupViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,10 @@ final class GameSetupViewController: UIViewController {
super.viewWillAppear(animated)
startGameButton.isEnabled = false

if !clueTextField.isHidden {
clueTextField.becomeFirstResponder()
}

NotificationCenter.default.addObserver(self, selector: #selector(textFieldDidUpdate), name: UITextField.textDidChangeNotification, object: nil)
}

Expand Down

0 comments on commit c35800c

Please sign in to comment.