GesConflictCollectionView.swift 514 B

12345678910111213141516171819202122
  1. //
  2. // GesConflictCollectionView.swift
  3. // SwiftBilibili
  4. //
  5. // Created by 罗文 on 2021/3/4.
  6. // Copyright © 2021年 罗文. All rights reserved.
  7. //
  8. import UIKit
  9. final class GesConflictCollectionView: UICollectionView,UIGestureRecognizerDelegate {
  10. var allowOtherGes: Bool = false
  11. func gestureRecognizer(_ gestureRecognizer: UIGestureRecognizer, shouldRecognizeSimultaneouslyWith otherGestureRecognizer: UIGestureRecognizer) -> Bool {
  12. return allowOtherGes
  13. }
  14. }