init(forURL:)
Initializes a new drag item preview with a URL.
Declaration
convenience init(forURL url: URL)Parameters
- url:
An Internet address referencing a remote resource, such as a webpage.
Return Value
A drag preview for a URL.
Discussion
This method creates a drag item preview of the URL. The URL preview is a one-line, textual representation that might not show the full URL string. Don’t use a file URL.