Initializer

init(fileNamed:)

Creates a reference node from a file in the app’s main bundle.

Declaration

convenience init(fileNamed fileName: String)

Parameters

fileName

The name of a file stored in the app’s main bundle.

Return Value

A newly initialized reference node.

Discussion

This initializer is for loading files that reside inside of the app bundle.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software