deviesdevelopment / ksswipestack Goto Github PK
View Code? Open in Web Editor NEWLightweight card swiping library for iOS written in Swift, with support for RXSwift.
License: MIT License
Lightweight card swiping library for iOS written in Swift, with support for RXSwift.
License: MIT License
in my app I want to add yes and no button so when I click on yes button the card would remove from right side and when clicked on no button the card would remove from left side.
Not sure if this functionality already exists, but couldn't see anything to lead me in that direction. I have implemented your library and it works great, however, my card has two buttons like/dislike that need to allow the user to perform the same actions that swiping left/right would. Is this functionality built in?
Hi,
thanks for the project. when I started the example project it worked fine. When I embedded a navigation controller to the example project and to fit the size of the cards according to my needs, I added a new view with the desired constraints. I removed the outlet from the main view and connected the outlet to the new view and changed the custom classes too. But the cards does not position in the middle of the screen and does not swipe out the screen on incomplete swipes.
Best Regards
Hi, Thanks for the useful library.
There is an option to find the direction after swiping. But I couldn't find the way how to recognize the direction of cards/view while swiping.
I tried a lot of methods. But couldn't figure out. Need help.
Thanks
I'm not able to clarify what it means to put a SwipeView into my Storyboard. I wondered if it would just magically appear after installing this cocoapod but the closest thing I can find in my right sidebar is a "Swipe Gesture Recognizer".
Stuck at first step. Sad face :(
How would i go about
making the cards have a margin so their edge is visible as a stack
with some sort of inset a few pixels from the edge of the screen
somehow the cards seem to be bigger as the screen itself
also how do i change the border color of the cards?
I tried a lot of methods. But I can't figure out. How to aff card data from array and show in swipwview.
In viewdidLoad method, the card data written as
for _ in 1...15 {
swipeView.addCard(ExampleData())
}
Hey guys,
As you know, we're using this excellent library:)
We want to add a secondary swipe movement on swipe down gesture that would simulate a pull to refresh and reveal a back view which we prepared beforehand: this means the swipe down should be only partially taking out the card, and would have the springboard effect that a regular pull to refresh has. We want to do this as a toggle so first down swipe pulls the swipeview down, the second brings it back.
My question is: how can one treat the swipes in KSSwipeStack before they happen? Is there a way to define a secondary swipe, like the one described above? I've seen in the SwipeHelper the function move(card, duration, toPoint) which would be useful but it's private, and we would rather use what's exposed, for sake of upwards library compatibility.
Thanks in advance for your answer.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.