CarouselItem
public class CarouselItem : Identifiable, Equatable
This is the carousel item view model which represents a specific lens icon
-
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
lensIdlens id
groupIdgroup id that lens belongs to
imageUrloptional image url of lens icon
imageoptional loaded UIImage of icon
-
Declaration
Swift
public static func == (lhs: CarouselItem, rhs: CarouselItem) -> Bool