mirror of https://github.com/oxen-io/session-ios
				
				
				
			
			You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			28 lines
		
	
	
		
			815 B
		
	
	
	
		
			Swift
		
	
			
		
		
	
	
			28 lines
		
	
	
		
			815 B
		
	
	
	
		
			Swift
		
	
| //
 | |
| //  Copyright (c) 2019 Open Whisper Systems. All rights reserved.
 | |
| //
 | |
| 
 | |
| import Foundation
 | |
| import UIKit
 | |
| 
 | |
| extension UIGestureRecognizer {
 | |
|     @objc
 | |
|     public var stateString: String {
 | |
|         return state.asString
 | |
|     }
 | |
| }
 | |
| 
 | |
| extension UIGestureRecognizer.State {
 | |
|     fileprivate var asString: String {
 | |
|         switch self {
 | |
|             case .possible: return "UIGestureRecognizerStatePossible"
 | |
|             case .began: return "UIGestureRecognizerStateBegan"
 | |
|             case .changed: return "UIGestureRecognizerStateChanged"
 | |
|             case .ended: return "UIGestureRecognizerStateEnded"
 | |
|             case .cancelled: return "UIGestureRecognizerStateCancelled"
 | |
|             case .failed: return "UIGestureRecognizerStateFailed"
 | |
|             @unknown default: return "UIGestureRecognizerStateUnknown"
 | |
|         }
 | |
|     }
 | |
| }
 |