title: How to export Flutter project as SDK (iOS dynamic framework)
body: <p>We have built an awesome <strong>Flutter project</strong>, which has great functionality we want to <strong>export</strong> as a <strong>framework</strong>, just like native <strong>libraries</strong> do, so that the <strong>source code is hidden</strong> (convert to dynamic framework).</p>
  
  <p>We have followed the instructions: <a href="https://github.com/flutter/flutter/wiki/Add-Flutter-to-existing-apps" rel="noreferrer">https://github.com/flutter/flutter/wiki/Add-Flutter-to-existing-apps</a></p>
  
  <p>which allows us to include Flutter project in a Host iOS app, initializing <code>FlutterEngine</code> and use of <code>FlutterViewController</code>.</p>
  
  <p>The question is, how do we create a dynamic framework, let's say <strong>SomeProductSDK.framework</strong>, which will expose a public methods to create our <strong>SomeProductSDK</strong> related <strong>modal screens</strong>?</p>
  
  <pre class="lang-swift prettyprint-override"><code>// In any app
  import SomeProductSDK
  
  let controller = TransactionViewController() // SomeProductSDK.framework with partial implementation with flutter
  self.present(controller, animated: true)
  </code></pre>