setImageURL(_:forTraits:)
Declaration
func setImageURL(_ aURL: URL?, forTraits traits: TVContentItemImageTrait)Parameters
- aURL:
The URL corresponding to the image location. This parameter can be an absolute path on the local device or an HTTP path. Specify
nilto remove the image associated with the given traits. - traits:
The traits to associate with the image. For example, you might specify that the image applies only to dark interfaces.
Discussion
The preferred file format for this image is a layered image file that provides the proper 3d effects. For more information, see App Programming Guide for tvOS.