Swiftpack.co - Mcrich23/CardFlip as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by Mcrich23.
Mcrich23/CardFlip v0.1.0
Flip a swiftui card at an easy tap
⭐️ 1
🕓 1 year ago
iOS macOS watchOS tvOS
.package(url: "https://github.com/Mcrich23/CardFlip.git", from: "v0.1.0")

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

GitHub

link
Stars: 1
Last commit: 1 year ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Release Notes

0.1.0
1 year ago
  • Released! This is the first version of CardFlip

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics