Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

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 |