TKUIModePickerItem

public protocol TKUIModePickerItem : Hashable

An item that TKUIModePicker can display

  • The default image to show for the mode. Items without images are ignored.

    Declaration

    Swift

    var image: TKImage? { get }
  • A textual representation for the image. Should describe the item. Used for accessibility support.

    Declaration

    Swift

    var imageTextRepresentation: String { get }
  • An optional URL to an image to replace the default image

    Declaration

    Swift

    var imageURL: URL? { get }
  • Whether imageURL points at an image that can be used in template mode

    Declaration

    Swift

    var imageURLIsTemplate: Bool { get }