rgs

RGStack

This UI attempts to capture the Quibi Card Stack and the associated User Interaction.

Showing:

Popularity

Downloads/wk

0

GitHub Stars

74

Maintenance

Last Commit

7mos ago

Contributors

1

Package

Dependencies

0

License

MIT

Categories

Readme

RGStack

This UI attempts to capture the Quibi Card Stack and the associated User Interaction.

Demo

Required

A View that conforms to the ConfigurableCard protocol

RGStack is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'RGStack'

Simplest Setup

import RGStack

struct ContentView: View {
  let demos: [Demo]
  var body: some View {
      RGStack<DemoCard>(data: demos, size: .init(width: 320, height: 530))//convenience initializer
  }
}

More configuration

Use the CardInfo, which is passed to the RGStack initializer, to control more aspects of the UI Layout

struct CardInfo {
    let size: CGSize
    let gapDistance: CGFloat
    let minScaleForBackCard: CGFloat
    let visibleFractionOfBottomCard: CGFloat
}

A full Demo is included in the ContentView of the Project.

License

License: MIT

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial