BannerViewFlowLayout

@MainActor
open class BannerViewFlowLayout : UICollectionViewFlowLayout

BannerView流式布局

  • 是否启用分页,默认false

    Declaration

    Swift

    @MainActor
    open var isPagingEnabled: Bool
  • 是否分页居中,默认false

    Declaration

    Swift

    @MainActor
    open var isPagingCenter: Bool

Lifecycle

  • Undocumented

    Declaration

    Swift

    @MainActor
    override public init()
  • Undocumented

    Declaration

    Swift

    @MainActor
    public required init?(coder: NSCoder)

Public

  • 获取每页宽度,必须设置itemSize

    Declaration

    Swift

    @MainActor
    open var pageWidth: CGFloat { get }
  • 获取当前页数,即居中cell的item

    Declaration

    Swift

    @MainActor
    open var currentPage: Int? { get }
  • 滚动到指定页数

    Declaration

    Swift

    @MainActor
    open func scrollToPage(_ index: Int, animated: Bool = true)

Override