Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Create deck-based apps in SwiftUI.

License

NotificationsYou must be signed in to change notification settings

danielsaidi/DeckKit

Repository files navigation

Project Icon

VersionSwift 6.1DocumentationMIT License

DeckKit

DeckKit is a SwiftUI library that makes it easy to create deck-based apps. It has aDeckView that can render any list of items, with support for swipe gestures, edge swipes, shuffling, etc.

Demo video

DeckKit can be customized to great extent. You can change colors, fonts, etc. and use completely custom views. It also has tools to manage favorites.

Installation

DeckKit can be installed with the Swift Package Manager:

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

Getting started

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

structHobby:Identifiable{varname:Stringvartext:Stringvarid:String{ name}}structMyView:View{@Statevarhobbies:[Hobby]=...varbody:someView{DeckView($hobbies){ hobbyinRoundedRectangle(cornerRadius:25.0).fill(.blue).overlay(Text(hobby.name)).shadow(radius:10)}}}

DeckKit has several view components for presenting decks, e.g.DeckView andDeckPageView.

See the onlinegetting started guide for more information.

Documentation

The onlinedocumentation has more information, articles, code examples, etc.

Demo Application

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

Support My Work

Maintaining my variousopen-source tools takes significant time and effort. You canbecome 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 theLICENSE file for more info.

About

Create deck-based apps in SwiftUI.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

[8]ページ先頭

©2009-2026 Movatter.jp