UIStateModel

public class UIStateModel : ObservableObject

A UIStateModel is used to keep track of the currently active card in the carousel and is passed down from the parent view.

  • Currently active card.

    Declaration

    Swift

    @Published
    var activeCard: Int { get set }
  • How much the user is dragging on the cards right now.

    Declaration

    Swift

    @Published
    var screenDrag: Float { get set }