diff --git a/Signal/src/UserInterface/HapticFeedback.swift b/Signal/src/UserInterface/HapticFeedback.swift index ea7270cd6..c80bbf321 100644 --- a/Signal/src/UserInterface/HapticFeedback.swift +++ b/Signal/src/UserInterface/HapticFeedback.swift @@ -51,6 +51,7 @@ enum NotificationHapticFeedbackType { case error, success, warning } +@available(iOS 10.0, *) extension NotificationHapticFeedbackType { var uiNotificationFeedbackType: UINotificationFeedbackGenerator.FeedbackType { switch self { diff --git a/SignalShareExtension/ShareViewController.swift b/SignalShareExtension/ShareViewController.swift index 1815b14ac..fc32db9ef 100644 --- a/SignalShareExtension/ShareViewController.swift +++ b/SignalShareExtension/ShareViewController.swift @@ -23,7 +23,7 @@ public class ShareViewController: UIViewController, ShareViewDelegate, SAEFailed enum ShareViewControllerError: Error { case assertionError(description: String) case unsupportedMedia - case notRegistered() + case notRegistered case obsoleteShare } @@ -475,7 +475,7 @@ public class ShareViewController: UIViewController, ShareViewDelegate, SAEFailed // If root view is an error view, do nothing. return } - throw ShareViewControllerError.notRegistered() + throw ShareViewControllerError.notRegistered } // MARK: ShareViewDelegate, SAEFailedViewDelegate