'Swift Get PKToolPicker Position
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
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
