Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/robinmanuelthiel/swipecards
Tinder-like swipe control for Xamarin.Forms
https://github.com/robinmanuelthiel/swipecards
Last synced: 7 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 (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-06-01T02:38:07.000Z (over 5 years ago)
- Last Synced: 2024-10-06T17:24:05.703Z (about 1 month ago)
- Language: C#
- Homepage:
- Size: 559 KB
- Stars: 128
- Watchers: 12
- 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.[![NuGet](https://img.shields.io/nuget/v/Forms.Controls.SwipeCards.svg?label=NuGet&style=flat-square)](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.![Preview](/Design/Swipecards.gif)
## 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 |