iOS Refactor and Clean up

This commit is contained in:
Rody Davis 2018-08-16 08:04:28 -04:00
parent 04383b7179
commit 4fb9862022

View File

@ -21,7 +21,9 @@ public class SwiftFlutterSmsPlugin: NSObject, FlutterPlugin, UINavigationControl
controller.recipients = _arguments["recipients"] as? [String] controller.recipients = _arguments["recipients"] as? [String]
controller.messageComposeDelegate = self controller.messageComposeDelegate = self
UIApplication.shared.keyWindow?.rootViewController?.present(controller, animated: true, completion: nil) UIApplication.shared.keyWindow?.rootViewController?.present(controller, animated: true, completion: nil)
result(message)
default: default:
result(FlutterMethodNotImplemented)
break break
} }
} }