Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save kevinmlong/678bee6286e223b3e94bc922f5b11f5b to your computer and use it in GitHub Desktop.
Save kevinmlong/678bee6286e223b3e94bc922f5b11f5b to your computer and use it in GitHub Desktop.
Unoccluded UITextField Extension (Simple Implementation)
import UIKit
class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
self.enableUnoccludedTextField()
}
override func viewWillDisappear(_ animated: Bool) {
self.disableUnoccludedTextField()
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment