0

I am using the PKToolPicker with PKCanvasView. I would like to add some buttons directly above the tool picker UI on iPhone. I am currently using the code below to try to get the frame position of the tool picker:

let toolBarPos = toolPicker.frameObscured(in: view)
print("View covered by tool picker: \(toolBarPos)")

but it returns the following:

View covered by tool picker: (inf, inf, 0.0, 0.0)

Thank you

Tom Coomer
  • 6,227
  • 12
  • 45
  • 82

1 Answers1

0

make sure you wait until the toolPicker is done animating before you get toolPicker.frameObscured(in: view)

Jordan Z
  • 1
  • 2