Skip to content

Repository files navigation

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
structContentView:View{letdemos:[Demo]varbody:someView{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

structCardInfo{letsize:CGSizeletgapDistance:CGFloatletminScaleForBackCard:CGFloatletvisibleFractionOfBottomCard:CGFloat}

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

License

License: MIT

About

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

Topics

Resources

Stars

129 stars

Watchers

4 watching

Forks

Releases

Packages

Used by

Contributors

Languages