A smooth, Tinder-style card swipe library for SwiftUI. Swipe right to like, left to dislike, and more—with zero boilerplate.
- Zero Boilerplate: Add swipe gestures with
.onSwipe { ... }. - CardStack Component: Manage stacks of cards with automatic depth and rotation.
- Fluid Animations: Spring-based movements for a natural, native feel.
- Customizable: Handle swipes in any direction (left, right, top, bottom).
- iOS 14.0+
- macOS 11.0+
.package(url: "https://github.com/ErsanQ/SwipeKit", from: "1.0.0")Image("Profile")
.onSwipe { direction in
if direction == .right {
print("Liked!")
}
}CardStack(items: $users) { user in
UserCard(user: user)
} onSwipe: { user, direction in
print("Swiped \(user.name) to \(direction)")
// Logic to remove from array
}ErsanQ (Swift Package Index Community)
