init(url:)
Initializes an asset from the file at the specified URL.
Declaration
init(url URL: URL)Parameters
- URL:
A URL specifying the location an asset file.
Return Value
A new asset object.
Discussion
Use the canImportFileExtension(_:) method to determine whether Model I/O can import an asset.