Contents

isValid(at:)

Returns a Boolean value that indicates whether the URL contains a valid model asset.

Declaration

static func isValid(at url: URL) -> Bool

Parameters

  • url:

    The file URL to validate.

Return Value

true if the URL points to a valid model asset; otherwise, false.

Discussion

This checks that:

  • the URL is a file URL

  • the extension is one of the known model asset extensions

  • the model contains either a source program or a derived artifact

See Also

Loading an asset