Contents

init(thumbnail:title:subtitle:tintColor:)

Initialize an element with a thumbnail, title, subtitle, and tint color.

Declaration

init(thumbnail: CPThumbnailImage, title: String?, subtitle: String?, tintColor: UIColor?)

Parameters

  • thumbnail:

    The thumbnail containing image, aspect ratio, image, and sports overlay information.

  • title:

    The title of the element.

  • subtitle:

    The subtitle of the element.

  • tintColor:

    The color used for styling the element.

Discussion

This initializer uses a CPThumbnailImage which encapsulates the image, aspect ratio, image, and sports overlay information.