init(named:)
Creates a color object using the information from the named asset.
Declaration
init?(named name: String)Parameters
- name:
The name of the asset containing the color.
Return Value
An initialized color object. The returned object uses the color space specified for the asset.