Initializes and returns an object with a reference to the named data asset that is in an asset catalog in the specified bundle.
- iOS 9.0+
- macOS 10.11+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 6.0+
The name of the data set in the asset catalog.
The bundle used to store the asset catalog. Pass
nilfor the main bundle. The bundle must be the same as the one used in the Xcode project.
The data asset object for the named data set in the specified bundle, or
nil if the data set is not found.
If there are multiple data files in the named data set, this method returns the one with attributes that most closely match the current device available screen space.
This method looks in the asset catalog, in the bundle specified by the
bundle parameter for the named data set.