From 4fb98620223a46a14fccbe37ef6f1d2625288a5c Mon Sep 17 00:00:00 2001 From: Rody Davis Date: Thu, 16 Aug 2018 08:04:28 -0400 Subject: [PATCH] iOS Refactor and Clean up --- ios/Classes/SwiftFlutterSmsPlugin.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ios/Classes/SwiftFlutterSmsPlugin.swift b/ios/Classes/SwiftFlutterSmsPlugin.swift index 84e0ea6..3362b6e 100644 --- a/ios/Classes/SwiftFlutterSmsPlugin.swift +++ b/ios/Classes/SwiftFlutterSmsPlugin.swift @@ -21,7 +21,9 @@ public class SwiftFlutterSmsPlugin: NSObject, FlutterPlugin, UINavigationControl controller.recipients = _arguments["recipients"] as? [String] controller.messageComposeDelegate = self UIApplication.shared.keyWindow?.rootViewController?.present(controller, animated: true, completion: nil) + result(message) default: + result(FlutterMethodNotImplemented) break } }