From c0c8a06d70ccb68799511d4ed5ef3e4f2167dd18 Mon Sep 17 00:00:00 2001 From: Ido Date: Sun, 16 Jun 2019 14:54:09 +0300 Subject: [PATCH 1/2] Fix xCode 11 warning 'public' modifier is redundant for instance method declared in a public extension --- SwiftDocumentScanner/Classes/Extensions/Array+extension.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SwiftDocumentScanner/Classes/Extensions/Array+extension.swift b/SwiftDocumentScanner/Classes/Extensions/Array+extension.swift index 2f3b6df..b362a86 100644 --- a/SwiftDocumentScanner/Classes/Extensions/Array+extension.swift +++ b/SwiftDocumentScanner/Classes/Extensions/Array+extension.swift @@ -9,7 +9,7 @@ import UIKit public extension Array where Element == CGPoint { - public var quadPath: UIBezierPath { + var quadPath: UIBezierPath { let path = UIBezierPath() guard count == 4 else { return path } From af7c51351718bc80f6639774836edeaebde0eecd Mon Sep 17 00:00:00 2001 From: Ido Date: Sun, 16 Jun 2019 14:56:21 +0300 Subject: [PATCH 2/2] Fix xCode 11 warning 'public' modifier is redundant for instance method declared in a public extension --- SwiftDocumentScanner/Classes/Extensions/UIImage+Extension.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SwiftDocumentScanner/Classes/Extensions/UIImage+Extension.swift b/SwiftDocumentScanner/Classes/Extensions/UIImage+Extension.swift index 427f8a6..c3048c3 100644 --- a/SwiftDocumentScanner/Classes/Extensions/UIImage+Extension.swift +++ b/SwiftDocumentScanner/Classes/Extensions/UIImage+Extension.swift @@ -9,7 +9,7 @@ import UIKit public extension UIImage { - public func fixOrientation(orientation: UIImage.Orientation? = nil) -> UIImage { + func fixOrientation(orientation: UIImage.Orientation? = nil) -> UIImage { guard orientation == nil && imageOrientation != .up else { return self } var transform = CGAffineTransform.identity