title: Conditional for MessageComposeResult in MFMessageComposeViewController with swift
body: <p>I am attempting to implement the MFMessageComposeViewControllerDelegate's required method</p>
  
  <pre><code> func messageComposeViewController(controller: MFMessageComposeViewController, didFinishWithResult result: MessageComposeResult) {
      }
  </code></pre>
  
  <p>The issue is that I can't figure out how to compare the MessageComposeResult with its associated constants in swift(MessageComposeResultCancelled, MessageComposeResultSent, MessageComposeResultFailed). So far I have tried:</p>
  
  <pre><code>result == MessageComposeResultCancelled
  </code></pre>
  
  <p>and</p>
  
  <pre><code>result == MessageComposeResult(0)
  </code></pre>
  
  <p>both of which return the error "'MessageComposeResult' is not convertible to MirrorDisposition". Any insight on how I can resolve this error would be greatly appreciated.</p>