iOS: Tinder-like swiping possible?

  1. 9 months ago

    Marcel Z

    11 Jan 2018 Pre-Release Testers, Xojo Pro Kirn, RP, Germany.

    I never used Xojo for iOS. Only Web & Mac - until now.

    Would it be possible to code a Tinder-like GUI, with swiping cards to the left and right?
    Or is this to special for Xojo?

    Is there a plugin or something for a Tinder-Navigation I could buy for Xojo?

  2. Jason K

    11 Jan 2018 Pre-Release Testers

    Using iOSKit you could add a swipe gesture recognizer to a canvas and then change what is displayed when the swipe event is triggered. So definitely possible and should be pretty easy even.

    https://github.com/kingj5/iOSKit

  3. Marcel Z

    12 Jan 2018 Pre-Release Testers, Xojo Pro Kirn, RP, Germany.

    Thank you. Thats looking good, but is there something more "neutral"?

    My big hope would be, that I can use the same source code or a lot of the souce code for iOS and in the upcoming Xojo for Android.
    If I use ioskit, I think, I have to rewrite most of the code. :(

  4. Christoph D

    12 Jan 2018 Pre-Release Testers, Xojo Pro

    Unless Xojo Inc adds this there no change for it.

  5. Gavin S

    12 Jan 2018 Pre-Release Testers, Xojo Pro UK

    Proper gesture support (swipes, flicks, pinches, touch and hold and more) should have been there from day 1. They're one of the defining features of iOS. Without them, it's akin to having a Mac app without mouse support.

  6. 8 months ago

    Hans-Jürgen M

    1 Mar 2018 Pre-Release Testers, Xojo Pro Europe (Germany)

    You can do this by using the parameter pos (xojo.core.point) in the PointerDown, PointerUp and PointerDrag events of the canvas.
    I.e. Use the PointerDown event as the Startpoint and then check the differences of the pos in the other events. In the PointerDrag event you can use the eventInfo.PointerCount parameter to check out if there are 1 or more fingers on the canvas (zoom in/out i.e.).
    It's some work, but pure xojo code.

  7. Tim J

    1 Mar 2018 Pre-Release Testers, Xojo Pro Dehydrating in AZ

    @Hans-Jürgen Müller You can do this by using the parameter pos (xojo.core.point) in the PointerDown, PointerUp and PointerDrag events of the canvas.
    I.e. Use the PointerDown event as the Startpoint and then check the differences of the pos in the other events. In the PointerDrag event you can use the eventInfo.PointerCount parameter to check out if there are 1 or more fingers on the canvas (zoom in/out i.e.).
    It's some work, but pure xojo code.

    Thanks for this Hans-Jürgen!

or Sign Up to reply!