CarouselItem

public class CarouselItem : Identifiable, Equatable

This is the carousel item view model which represents a specific lens icon

  • id

    id for carousel item

    Declaration

    Swift

    public let id: String
  • lens id

    Declaration

    Swift

    public let lensId: String
  • group id lens belongs to

    Declaration

    Swift

    public let groupId: String
  • image url for lens icon

    Declaration

    Swift

    public let imageUrl: URL?
  • downloaded image for lens icon

    Declaration

    Swift

    public var image: UIImage?
  • Designated init for a carousel item

    Declaration

    Swift

    public init(lensId: String, groupId: String, imageUrl: URL? = nil, image: UIImage? = nil)

    Parameters

    lensId

    lens id

    groupId

    group id that lens belongs to

    imageUrl

    optional image url of lens icon

    image

    optional loaded UIImage of icon

  • Declaration

    Swift

    public static func == (lhs: CarouselItem, rhs: CarouselItem) -> Bool