Skip to content

Commit

Permalink
⭐️ Impl: Add UIGestureRecognizer+Helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
dominicstop committed Apr 21, 2023
1 parent a274fe0 commit f399bdc
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions ios/src_library/Extensions/UIGestureRecognizer+Helpers.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
//
// UIGestureRecognizer+Helpers.swift
// react-native-ios-modal
//
// Created by Dominic Go on 4/22/23.
//

import Foundation

extension UIGestureRecognizer.State: CustomStringConvertible {
public var description: String {
switch self {
case .possible : return "possible";
case .began : return "began";
case .changed : return "changed";
case .ended : return "ended";
case .cancelled: return "cancelled";
case .failed : return "failed";

@unknown default: return "";
};
};
};

0 comments on commit f399bdc

Please sign in to comment.