📜  使用滑动手势识别器 swift 代码示例

📅  最后修改于: 2022-03-11 15:01:02.092000             🧑  作者: Mango

代码示例1
@IBAction func swipeHandler(_ gestureRecognizer : UISwipeGestureRecognizer) {
    if gestureRecognizer.state == .ended {
        // Perform action.
    }
}