Skip to content

Mcrich23/CardFlip

Repository files navigation

CardFlip

An easy way to flip a card on tap in swiftui.

FlipCardExample

Requirements

  • iOS 14, macOS 10.16, tvOS 14, or watchOS 7
  • Swift 5.5+
  • Xcode 12.5+

Installation

The preferred way of installing Mcrich23 Toolkit is via the Swift Package Manager.

  1. In Xcode, open your project and navigate to FileAdd Packages...
  2. Paste the repository URL (https://github.com/Mcrich23/CardFlip) and click Next.
  3. For Rules, select Up To Next Minor Version (With base version set to 0.1.0).
  4. Click Finish.
  5. Check CardFlip
  6. Click Add To Project

Views

CardFlip

Usage:

CardFlip(cardFront: {
    VStack {
        Text("Front View") // What's shown on the front of the card
    }
}, cardBack: {
    VStack {
        Text("Back View") // What's shown on the back of the card
    }
}, showBorder: true) // Whether it shows the card border or not

About

Flip a swiftui card at an easy tap

Topics

Resources

License

Stars

1 star

Watchers

1 watching

Forks

Contributors

Languages