https://github.com/robinmanuelthiel/swipecards
Tinder-like swipe control for Xamarin.Forms
https://github.com/robinmanuelthiel/swipecards
Last synced: 22 days ago
JSON representation
Tinder-like swipe control for Xamarin.Forms
- Host: GitHub
- URL: https://github.com/robinmanuelthiel/swipecards
- Owner: robinmanuelthiel
- License: mit
- Created: 2017-03-23T15:33:46.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2019-06-01T02:38:07.000Z (almost 6 years ago)
- Last Synced: 2025-04-13T11:15:54.133Z (23 days ago)
- Language: C#
- Homepage:
- Size: 559 KB
- Stars: 128
- Watchers: 11
- Forks: 24
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-xamarin-forms - SwipeCards ★128
- awesome-xamarin - Swipecards ★80 - A Tinder-like swipe control for Xamarin.Forms. (Xamarin.Forms)
README
# Swipecards
A Tinder control for Xamarin.Forms that supports iOS, Android and UWP.[](https://www.nuget.org/packages/Forms.Controls.SwipeCards/)
## How to use
**Add the [NuGet package](https://www.nuget.org/packages/Forms.Controls.SwipeCards/) to the Xamarin.Forms project and all platform projects**
```
PM> Install-Package Forms.Controls.SwipeCards
```**Add the XML namespace**
```xml
xmlns:swipecards="clr-namespace:SwipeCards.Controls;assembly=SwipeCards.Controls"
```**Add the control**
```xml
```
## Preview
Take a look a the [Demo Project](/SwipeCards.Demo.Forms) in this repository for a full sample.
## API Reference
| Method | Description |
|-|-|
| Reset() | Resets the whole card stack || Property | Default | Description |
|-|-|-|
| CardMoveDistance | null | How far the card has to be dragged to trigger the swipe. Default is 30% of the control || Command | Parameter | Description |
|-|-|-|
| SwipedLeftCommand | Selected Item | Triggered, when card got swiped to the left |
| SwipedRightCommand | Selected Item | Triggered, when card got swiped to the right || Event | Arguments | Description |
|-|-|-|
| Swiped | Swiped Item, Swipe direction | Triggered, when card got swiped to the left or right |
| StartedDragging | Dragged Item | Triggered, when card got dragged |
| FinishedDragging | Dragged Item | Triggered, when dragging finished |