Skip to content

Commit

Permalink
Actually focus text field upon showing alert
Browse files Browse the repository at this point in the history
  • Loading branch information
sberrevoets committed Feb 27, 2017
1 parent 2bd4d8f commit f6e9c5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/AlertController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ public class AlertController: UIViewController {
// http://stackoverflow.com/a/19580888/751268

if self.behaviors?.contains(.AutomaticallyFocusTextField) == true {
_ = self.assignResponder
_ = self.assignResponder()
}
}

Expand Down

0 comments on commit f6e9c5c

Please sign in to comment.