SPStorkController icon indicating copy to clipboard operation
SPStorkController copied to clipboard

Accelerate the animation if show keyboard

Open ivanvorobei opened this issue 5 years ago • 0 comments

If present controller

class TextFieldController: UIViewController {
    
    let textField = UITextField()
    
    override func viewDidLoad() {
        super.viewDidLoad()
        self.view.backgroundColor = .white
        self.view.addSubview(self.textField)
    }
    
    override func viewWillAppear(_ animated: Bool) {
        super.viewWillAppear(animated)
        self.textField.becomeFirstResponder()
    }
}

with SPStorkTransitionDelegate, animation for parent controller accelerate. If remove

self.textField.becomeFirstResponder()

all work correctly.

ivanvorobei avatar May 07 '19 12:05 ivanvorobei