소스 검색

coding

Signed-off-by: Marino Faggiana <marino@marinofaggiana.com>
Marino Faggiana 2 년 전
부모
커밋
f7c55e421d
1개의 변경된 파일4개의 추가작업 그리고 6개의 파일을 삭제
  1. 4 6
      File Provider Extension UI/DocumentActionViewController.swift

+ 4 - 6
File Provider Extension UI/DocumentActionViewController.swift

@@ -10,15 +10,15 @@ import UIKit
 import FileProviderUI
 
 class DocumentActionViewController: FPUIActionExtensionViewController {
-    
+
     @IBOutlet weak var identifierLabel: UILabel!
     @IBOutlet weak var actionTypeLabel: UILabel!
-    
+
     override func prepare(forAction actionIdentifier: String, itemIdentifiers: [NSFileProviderItemIdentifier]) {
         identifierLabel?.text = actionIdentifier
         actionTypeLabel?.text = "Custom action"
     }
-    
+
     override func prepare(forError error: Error) {
         identifierLabel?.text = error.localizedDescription
         actionTypeLabel?.text = "Authenticate"
@@ -28,10 +28,8 @@ class DocumentActionViewController: FPUIActionExtensionViewController {
         // Perform the action and call the completion block. If an unrecoverable error occurs you must still call the completion block with an error. Use the error code FPUIExtensionErrorCode.failed to signal the failure.
         extensionContext.completeRequest()
     }
-    
+
     @IBAction func cancelButtonTapped(_ sender: Any) {
         extensionContext.cancelRequest(withError: NSError(domain: FPUIErrorDomain, code: Int(FPUIExtensionErrorCode.userCancelled.rawValue), userInfo: nil))
     }
-    
 }
-