From fa56408bc1b7c75ec5e53079ec92279283f23fb6 Mon Sep 17 00:00:00 2001 From: Jungpyo Hong <54448459+jphong1111@users.noreply.github.com> Date: Mon, 3 May 2021 04:40:20 -0500 Subject: [PATCH] edit Image Picker --- Helper/ImagePicker.swift | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/Helper/ImagePicker.swift b/Helper/ImagePicker.swift index cb5834b..c29fa0a 100644 --- a/Helper/ImagePicker.swift +++ b/Helper/ImagePicker.swift @@ -1,6 +1,5 @@ // // ImagePicker.swift -// VariousManagerDemoApp // // Created by JungpyoHong on 4/21/21. // @@ -24,7 +23,6 @@ open class ImagePicker: NSObject { self.presentationController = presentationController self.delegate = delegate - self.imagePicker.delegate = self self.imagePicker.allowsEditing = true self.imagePicker.mediaTypes = ["public.image"] @@ -44,7 +42,6 @@ open class ImagePicker: NSObject { public func present(from sourceView: UIView) { let alertController = UIAlertController(title: nil, message: nil, preferredStyle: .actionSheet) - if let action = self.action(for: .camera, title: "Take photo") { alertController.addAction(action) } @@ -56,13 +53,6 @@ open class ImagePicker: NSObject { } alertController.addAction(UIAlertAction(title: "Cancel", style: .cancel, handler: nil)) - -// if UIDevice.current.userInterfaceIdiom == .pad { -// alertController.popoverPresentationController?.sourceView = sourceView -// alertController.popoverPresentationController?.sourceRect = sourceView.bounds -// alertController.popoverPresentationController?.permittedArrowDirections = [.down, .up] -// } - self.presentationController?.present(alertController, animated: true) }