Skip to content

Easy-to-use framework fetching a playing card input in several discrete ways

License

Notifications You must be signed in to change notification settings

digital-magic-club/card-picker

Repository files navigation

Card Picker

Easy-to-use framework fetching a playing card input in several discrete ways.

Language Platforms Versions Swift Package Manager

Features

Example

CFS

Installation

Swift Package Manager

The Swift Package Manager is a tool for automating the distribution of Swift code and is integrated into the swift compiler.

Once you have your Swift package set up, adding CardPicker as a dependency is as easy as adding it to the dependencies value of your Package.swift.

dependencies: [
    .package(url: "https://github.com/digital-magic-club/card-picker.git", .upToNextMajor(from: "0.1.0"))
]

Usage

  1. Import the CardPicker package: import CardPicker
  2. Create an optional Card variable: @State private var card: Card?
  3. Declare a CardPickerView while binding your variable: CardPickerView(card: $card)
import CardPicker

struct ContentView: View {
  @State private var card: Card?

  var body: some View {
    NavigationStack {
      VStack {
        NavigationLink("Card Picker", destination: CardPickerView(card: $card))

        if let card {
          Text(card.description)
        }
      }
      .padding()
    }
  }
}

Credits

This project is owned and maintained by the Digital Magic Club. You can join the Facebook group for project updates and releases.

Sponsorship

The DMC is looking to raise money to officially stay registered as a federal non-profit organization.

Sponsoring the DMC will enable us to:

  • Pay our yearly legal fees to keep the non-profit in good status,
  • Keep adding more open-source features at a faster pace,
  • Potentially fund test servers to make it easier for us to test the edge cases,
  • Potentially fund developers to work on one of our projects full-time.

The magic community adoption of the DMC libraries has been amazing!

We are greatly humbled by your enthusiasm around the projects and want to continue to do everything we can to move the needle forward. With your continued support, the DMC will be able to improve its reach and also provide better legal safety for the core members.

Any amount you can donate, whether once or monthly, to help us reach our goal would be greatly appreciated.

About

Easy-to-use framework fetching a playing card input in several discrete ways

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages