SlidingViewManager

public struct SlidingViewManager

Simple UIView collection manager that can cycle through cells, showing them one at a time.

  • The index of the currently active view

    Declaration

    Swift

    public private(set) var active: Int { get }
  • Create a new manager for a sliding view

    Declaration

    Swift

    init(active: Int)

    Parameters

    active

    the view that is currently visible

  • Add a view to the manager

    Declaration

    Swift

    public mutating func add(view: UIView)

    Parameters

    view

    the UIView to add

  • Show the next view by sliding the existing / next views to the left.

    Declaration

    Swift

    public mutating func slideNextHorizontally()
  • Show the previous view by sliding the existing / previous views to the right.

    Declaration

    Swift

    public mutating func slidePrevHorizontally()