Better import animation

This commit is contained in:
Ivan Grachyov 2021-12-10 16:12:13 +03:00
parent bd37beab72
commit 6c7446dfd2

View File

@ -21,10 +21,14 @@ class ImportViewController: UIViewController {
super.viewWillAppear(animated)
DispatchQueue.main.async { [weak self] in
self?.navigationController?.navigationBar.sizeToFit()
self?.textView.becomeFirstResponder()
}
}
override func viewDidAppear(_ animated: Bool) {
super.viewDidAppear(animated)
textView.becomeFirstResponder()
}
@IBAction func pasteButtonTapped(_ sender: Any) {
if let text = UIPasteboard.general.string {
textView.text = text