shared(for:)
Returns the tool picker object to use for the specified window.
Declaration
class func shared(for window: UIWindow) -> PKToolPicker?Parameters
- window:
A window of your app.
Return Value
The tool picker associated with the window, or nil if an error occurred.
Discussion
Call this method when you want to retrieve the tool picker assigned to one of your app’s windows. If the specified window doesn’t yet have a tool picker, this method creates and associates it with that window.