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
make sure you wait until the toolPicker is done animating before you get toolPicker.frameObscured(in: view)