Hi
Until iOS 14 update, in my APP PKToolPicker is show at start using this code.
After iOS 14 update the toolPicker is not showing, the only way to make it “shows” is add an “alert” like this, just after" canvasView.becomeFirstResponder()” in the previous code.
This is not a “great solution”. What is the best way to make the
PKToolPicker at start, just like worked before iOS 14 update.
I also try to use " let toolPicker = PKToolPicker.init()” but it only works in simulator not in real device.
Thanks in advance for any idea.
Until iOS 14 update, in my APP PKToolPicker is show at start using this code.
Code Block override func viewDidAppear(_ animated: Bool) { super.viewDidAppear(animated) guard let window = view.window, let toolPicker = PKToolPicker.shared(for: window) else { return } toolPicker.setVisible(true, forFirstResponder: canvasView) toolPicker.addObserver(canvasView) canvasView.becomeFirstResponder() }
After iOS 14 update the toolPicker is not showing, the only way to make it “shows” is add an “alert” like this, just after" canvasView.becomeFirstResponder()” in the previous code.
Code Block let alerta=UIAlertController(title: “Info example text", message:”Message info example text", preferredStyle:.alert) let accion=UIAlertAction(title: "Aceptar", style:.default, handler:nil) alerta.addAction(accion) present(alerta, animated:true, completion:nil)
This is not a “great solution”. What is the best way to make the
PKToolPicker at start, just like worked before iOS 14 update.
I also try to use " let toolPicker = PKToolPicker.init()” but it only works in simulator not in real device.
Thanks in advance for any idea.