11

How to setup PKToolPicker initial position?

It always started at the bottom, and if there is a toolbar, cover up the toolbar.

let toolPicker = PKToolPicker.shared(for: self.view.window!)
toolPicker?.addObserver(canvas)
toolPicker?.setVisible(true, forFirstResponder: canvas)
byaruhaf
  • 4,128
  • 2
  • 32
  • 50
Lim Thye Chean
  • 8,704
  • 9
  • 49
  • 88
  • 2
    No one? It would be really useful if I could start this on the right side. Or even just have it do a .off(y:-10) would work but I cannot get it to work. – AlexGarlock Oct 05 '20 at 03:46
  • 2
    It's been awhile! I would also like to open on the right side instead of just the bottom if possible. Nothing in the docs but wondering if anyone had a suggestion? – malaki1974 Nov 17 '21 at 19:09
  • It's not possible on iPhone to change the picker's position but I think it's possible on iPad, although I don't really know how. – AfnanAhmad Jan 16 '23 at 11:24

0 Answers0