user3120670
user3120670

Reputation: 81

How to add like dislike image on cards while swapping cards Koloda , swift

I am using Koloda for tinder like application. I successfully created by cards with given example:-

func kolodaNumberOfCards(_ koloda:KolodaView) -> Int {
    return 6
}

func kolodaSpeedThatCardShouldDrag(_ koloda: KolodaView) -> DragSpeed {
    return .default
}

func koloda(_ koloda: KolodaView, viewForCardAt index: Int) -> UIView {

    let view = UIImageView(image: UIImage(named: "home"))
        view.layer.cornerRadius = 20
        view.clipsToBounds = true
    
    return view
}

But unable to add like or dislike image on the view. When user swipe left or right i want to add like or dislike image over view. I searched but unable to get the ans. Kindly help me out.

Upvotes: 0

Views: 144

Answers (0)

Related Questions