Latest 1.0.3
Homepage https://github.com/nickypatson/TinderSwipeView
License Apache License, Version 2.0 Licensed under the Apache License, Version 2.0 (the “License”);
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an “AS IS” BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Platforms ios 9.0
Authors

Tinder Swipe View Swift 4.0.x

Inspired animation from Tinder and Potluck with random undo feature!

Run in physical device for better animaton!!!!

Preview

Size Limit exampleSize Limit example

Screenshot

Size Limit exampleSize Limit example

Installation with CocoaPods

CocoaPods is a dependency manager for Objective-C, which automates and simplifies the process of using 3rd-party libraries like SwiftMultiSelect in your projects. You can install it with the following command:

$ gem install cocoapods

Podfile

To integrate GradientSlider into your Xcode project using CocoaPods, specify it in your Podfile:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'

target 'TargetName' do
use_frameworks!
pod 'TinderSwipeView’
end

Then, run the following command:

$ pod install

Instantiation

Tinder Swipe can be added to storyboard or instantiated programmatically:

    let swipeView = TinderSwipeView<UserModel>(frame: viewContainer.bounds, overlayGenerator: overlayGenerator)
    viewContainer.addSubview(swipeView)
    swipeView.showTinderCards(with: userModels)

Animation


    internal func cardGoesRight()

    internal func cardGoesLeft()

    internal func rightClickAction()

    internal func leftClickAction()

    internal func makeUndoAction()

    internal func rollBackCard()

    internal func shakeAnimationCard(completion: @escaping (Bool) -> ())

Delegate Methods

Here is a list of callbacks you can listen to:

protocol TinderCardDelegate: NSObjectProtocol {

    func dummyAnimationDone()
    func currentCardStatus(card: Any, distance: CGFloat)
    func cardGoesLeft(_ object: Any)
    func cardGoesRight(_ object: Any)
    func endOfCardsReached()
}

Requirements

* Swift 5
* XCode 10
* iOS 8.0 (Min SDK)

Author

Nicky Patson

HomePage

[email protected]

License

Tinder Swipe View is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "TinderSwipeView",
    "version": "1.0.3",
    "summary": "Swipe view inspired by tinder",
    "description": "Inspired animation from Tinder and Potluck with random undo feature!",
    "homepage": "https://github.com/nickypatson/TinderSwipeView",
    "license": {
        "type": "Apache License, Version 2.0",
        "text": "Licensed under the Apache License, Version 2.0 (the "License");nyou may not use this file except in compliance with the License.nYou may obtain a copy of the License atnnhttp://www.apache.org/licenses/LICENSE-2.0nnUnless required by applicable law or agreed to in writing, softwarendistributed under the License is distributed on an "AS IS" BASIS,nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.nSee the License for the specific language governing permissions andnlimitations under the License.n"
    },
    "authors": {
        "nickypatson": "[email protected]"
    },
    "source": {
        "git": "https://github.com/nickypatson/TinderSwipeView.git",
        "tag": "1.0.3"
    },
    "platforms": {
        "ios": "9.0"
    },
    "swift_version": "5.0",
    "source_files": "TinderSwipeView/Classes/**/*"
}

Pin It on Pinterest

Share This