motion/mail/mail.rb in bubble-wrap-1.7.1 vs motion/mail/mail.rb in bubble-wrap-1.8.0
- old
+ new
@@ -54,9 +54,13 @@
mail_controller.setMessageBody(options[:message], isHTML: !!options[:html])
mail_controller
end
+ def can_send_mail?
+ !!MFMailComposeViewController.canSendMail
+ end
+
# Event when the MFMailComposeViewController is closed
# -------------------------------------------------------------
# the callback is fired if it was present in the constructor
def mailComposeController(controller, didFinishWithResult: result, error: error)