Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Socket
Sign inDemoInstall

github.com/robinmanuelthiel/swipecards

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/robinmanuelthiel/swipecards


Version published
Created
Source

Swipecards

A Tinder control for Xamarin.Forms that supports iOS, Android and UWP.

NuGet

How to use

Add the NuGet package to the Xamarin.Forms project

PM> Install-Package Forms.Controls.SwipeCards

Add the XML namespace

xmlns:swipecards="clr-namespace:SwipeCards.Controls;assembly=SwipeCards.Controls"

Add the control

<swipecards:CardStackView
    x:Name="CardStackView"
    ItemsSource="{Binding Cards}">
    
    <swipecards:CardStackView.ItemTemplate>
        <DataTemplate>
            <Label Text="{Binding}" VerticalOptions="Center" HorizontalOptions="Center" />
        </DataTemplate>
    </swipecards:CardStackView.ItemTemplate>   
</swipecards:CardStackView>

Preview

Preview

API Reference

PropertyDefaultDescription
CardMoveDistancenullHow far the card has to be dragged to trigger the swipe. Default is 30% of the control
CommandParameterDescription
SwipedLeftCommandSelected ItemTriggered, when card got swiped to the left
SwipedRightCommandSelected ItemTriggered, when card got swiped to the right
ActionParameterDescription
SwipedLeftSelected ItemTriggered, when card got swiped to the left
SwipedRightSelected ItemTriggered, when card got swiped to the right
StartedDraggingSelected ItemTriggered, when card got dragged
FinishedDraggingSelected ItemTriggered, when dragging finished

FAQs

Package last updated on 26 Dec 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc