Skip to content
프로젝트

소개

카드와 덱을 기반으로 한 SwiftUI 뷰입니다.

웹 및 앱 개발

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
+1
in 1 month
업데이트 지연

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

Project Icon

Version Swift 6.1 Documentation MIT License

DeckKit

DeckKit is a SwiftUI library that makes it easy to create card and deck-based apps.

Demo video

DeckKit has a Card view that can render a card-like view, a Deck that can render a deck of items, with support for swipe gestures, edge swipes, shuffling, etc.

DeckKit can be customized to great extent. You can change colors, fonts, etc. and use completely custom views.

Installation

DeckKit can be installed with the Swift Package Manager:

https://github.com/danielsaidi/DeckKit.git

Supported Platforms

DeckKit supports iOS 17, macOS 14, tvOS 17, watchOS 10, and visionOS 1.

Getting started

With DeckKit, you can create a deck of cards with any type that conforms to Identifiable:

struct Hobby: Identifiable {
    
    var name: String
    var text: String

    var id: String { name }
}

struct MyView: View {

    @State 
    var hobbies: [Hobby] = ...

    var body: some View {
        Deck($hobbies) { hobby in
            RoundedRectangle(cornerRadius: 25.0)
                .fill(.blue)
                .overlay(Text(hobby.name))
                .shadow(radius: 10)
        }
    }
}

DeckKit has several view components for presenting decks, e.g. Deck and DeckPageView.

See the online getting started guide for more information.

Documentation

The online documentation has more information, articles, code examples, etc.

Demo Application

The Demo folder has an app that lets you explore the library on iOS, macOS, and visionOS.

Support My Work

Maintaining my various open-source tools takes significant time and effort. You can become a sponsor to help me dedicate more time to creating, maintaining, and improving these projects. Every contribution, no matter the size, makes a real difference in keeping these tools free and actively developed. Thank you for considering!

Contact

Feel free to reach out if you have questions or want to contribute in any way:

License

DeckKit is available under the MIT license. See the LICENSE file for more info.

관련 프로젝트 살펴보기

불러오는 중…