Github @Link
@objc private func handleHover(_ gestureRecognizer: UILongPressGestureRecognizer) {
let location = gestureRecognizer.location(in: collectionView)
switch gestureRecognizer.state {
case .began, .changed:
if let indexPath = collectionView.indexPathForItem(at: location) {
showHoverToast(at: location, for: indexPath)
} else {
dismissHoverToast()
}
case .ended, .cancelled:
dismissHoverToast()
default:
break
}
}
This app is inspired by Aya Baghdadi” and copyright for @Technicalisto