大家下午好!
没有人可以帮助我-我在'Koloda','4.6‘版本的pod上遇到了这个问题,我不知道该怎么办。
委托未调用didSwipeCardAtIndex。之前,在swift 2上,一切运行正常。现在Swift 3&4 Sample也没有调用func ...https://github.com/Yalantis/Koloda
func koloda(koloda: KolodaView, didSwipedCardAtIndex index: UInt, inDirection direction: SwipeResultDirection) {
//
}感谢所有人
发布于 2020-01-20 20:21:05
您可以在swift 4中使用此函数
func koloda(koloda: KolodaView, shouldSwipeCardAtIndex index: UInt, inDirection direction: SwipeResultDirection) -> Bool {
if direction == SwipeResultDirection.left || direction == SwipeResultDirection.right {
return true
}
return false
}https://stackoverflow.com/questions/54357597
复制相似问题