CarouselCell

class CarouselCell
extension CarouselCell : CALayerDelegate, CVarArg, ContentView, CustomDebugStringConvertible, CustomStringConvertible, Equatable, Hashable, NSCoding, NSObjectProtocol, StaticIdentifiable, UIAccessibilityIdentification, UIActivityItemsConfigurationProviding, UIAppearance, UIAppearanceContainer, UICoordinateSpace, UIDynamicItem, UIFocusEnvironment, UIFocusItem, UIFocusItemContainer, UILargeContentViewerItem, UIPasteConfigurationSupporting, UIPopoverPresentationControllerSourceItem, UIResponderStandardEditActions, UITraitChangeObservable, UITraitEnvironment, UIUserActivityRestoring, __UITraitChangeObservable

The Carousel Cell class hold the FI image and labels, notification label and the preferred view

  • Undocumented

    Declaration

    Swift

    func desiredHeight(forWidth availableWidth: CGFloat) -> CGFloat
  • Custom HitTest has an additional check before the normal behavior to check if this is something preferredView could handle despite being outside of the cell’s bounds. This is necessary to do because the default behavior does not allow for taps outside of the superview to be claimed by subviews.

    Declaration

    Swift

    override func hitTest(_ point: CGPoint, with event: UIEvent?) -> UIView?
  • Re-setting the cells before they’re reused

    Declaration

    Swift

    override func prepareForReuse()