ViewPage

public class ViewPage<T> : ScrollView

Undocumented

Init

  • Sets the action that handle the item at the specified index path .

    Declaration

    Swift

    @discardableResult
    public func sizeForItem(_ action: @escaping (_ data: T, _ indexPath: IndexPath) -> CGSize) -> Self

    Parameters

    action

    The action that handle the item at the specified index path.

    Return Value

    Self

  • Sets the action that handle the item at the specified index path was selected.

    Declaration

    Swift

    @discardableResult
    public func cellSelected(_ action: @escaping (_ data: T, _ indexPath: IndexPath) -> Void) -> Self

    Parameters

    action

    The action that handle the item at the specified index path was selected.

    Return Value

    Self

UI Method

  • Undocumented

    Declaration

    Swift

    @discardableResult
    public func reloadData() -> Self
  • Undocumented

    Declaration

    Swift

    @discardableResult
    public func onChangeSelected(selectedFunc: @escaping ViewPageChangedCloser) -> Self
  • Undocumented

    Declaration

    Swift

    @discardableResult
    public func pageScrollingListener(scrollListener: @escaping ViewPageTabScrollingListener) -> Self
  • Undocumented

    Declaration

    Swift

    @discardableResult
    public func link(tabSegment tab: TabSegment?) -> Self
  • Undocumented

    Declaration

    Swift

    @discardableResult
    public func unlink(tabSegment tab: TabSegment?) -> Self