Releases: noppefoxwolf/CardDeckView
Releases · noppefoxwolf/CardDeckView
v1.6.0 - Add gesture direction control functionality
🎉 New Features
- Gesture Direction Control: Added ability to disable specific swipe directions (up, down, or all) in CardDeckView
- New API: Introduced
CardDeckScrollDirectionoption set for configuring disabled directions - View Modifier: Added
.cardDeckDisabledScrollDirections()for easy configuration - Interactive Demo: Updated example app with live demo showing different gesture configurations
🛠️ What's Changed
- Add
CardDeckScrollDirectionstruct with.up,.down,.alloptions - Add environment-based configuration system for gesture control
- Enhanced drag gesture handling with direction-specific filtering
- Improved haptic feedback for enabled gestures only
- Updated example app with picker interface for testing different configurations
🔧 API Usage
CardDeckView {
// Your cards here
}
.cardDeckDisabledScrollDirections(.up) // Disable up swipes
.cardDeckDisabledScrollDirections(.down) // Disable down swipes
.cardDeckDisabledScrollDirections(.all) // Disable all gestures🧪 Testing
The example app now includes an interactive picker to test all gesture configurations:
- Normal (all enabled)
- Up swipe disabled
- Down swipe disabled
- All gestures disabled
✨ Backward Compatibility
Existing code continues to work without any changes - all gestures are enabled by default.
Full Changelog: v1.5.0...v1.6.0
1.2.0
New minor release 1.2.0
What's Changed
- Update CardDeckViewState.swift by @noppefoxwolf in #2
- Enhance CardDeckView drag gesture handling and modernize environment key by @noppefoxwolf in #3
Full Changelog: v1.0.0...1.2.0
Enhanced Drag Gestures and Haptic Feedback v1.1.0
What's New
Enhanced Drag Gesture Handling
- Improved velocity calculations for more responsive gesture recognition
- Enhanced area transition logic with better thresholds
- Smoother animation timing based on gesture velocity
Haptic Feedback
- Added tactile feedback when drag gestures start
- Different haptic responses for successful area changes vs returns to original position
- Selection feedback for fast swipe detection
Code Modernization
- Updated environment key implementation to use @entry macro
- Added UIKit import for haptic feedback functionality
Animation Improvements
- Refined animation durations based on gesture velocity
- Consistent easing animations throughout the component
🤖 Generated with Claude Code
v1.0.0 - Initial Release
CardDeckView v1.0.0
Initial release of CardDeckView - A SwiftUI library for interactive card deck navigation.
Features
- Card Stack Navigation: Swipe through cards with smooth animations
- Interactive Drag Gestures: Natural touch interactions for card navigation
- Position Tracking: Monitor current card position with binding support
- Customizable Styling: Built-in card background modifiers and shadows
- SwiftUI Native: Built entirely with SwiftUI components
- iOS & macOS Support: Compatible with iOS 18+ and macOS 15+
Requirements
- iOS 18.0+ / macOS 15.0+
- Swift 6.2+
- Xcode 16.0+
Installation
Add CardDeckView to your project using Swift Package Manager:
dependencies: [
.package(url: "https://github.com/noppefoxwolf/CardDeckView.git", from: "1.0.0")
]See README for detailed usage instructions.