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

136 Views Asked by At

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.

0

There are 0 best solutions below