title: How to set Initial Route from native iOS
body: <p><strong>I'm integrate Flutter module to ios Native project, I want to set Initial Route from ios native, but it not work, it use default route.</strong></p>
  
  <p><strong>ViewController.swift</strong></p>
  
  <pre><code>import UIKit
  import Flutter
  
  class ViewController: UIViewController {
  
      let flutterEngine = FlutterEngine(name: "test")
  
      override func viewDidLoad() {
          super.viewDidLoad()
          // Do any additional setup after loading the view.
          flutterEngine.navigationChannel.invokeMethod("setInitialRoute", arguments:"/home")
          flutterEngine.run();
  
      }
  
      @IBAction func handleClick(_ sender: Any) {
          let flutterViewController = FlutterViewController(engine: flutterEngine, nibName: nil, bundle: nil)
          flutterViewController.setInitialRoute("/home")
          self.navigationController?.pushViewController(flutterViewController, animated: true)
      }
  
  }
  </code></pre>
  
  <p>main.dart</p>
  
  <pre><code>import 'package:flutter/material.dart';
  import 'package:flutter/services.dart';
  
  void main() =&gt; runApp(MyApp());
  
  class MyApp extends StatelessWidget {
    final _route = &lt;String, WidgetBuilder&gt;{
      "/login": (context) =&gt; Login(),
      "/home": (context) =&gt; Home()
    };
  
    @override
    Widget build(BuildContext context) {
      return MaterialApp(
        routes: _route,
        title: "App", // Title ของหน้า
        home: Scaffold(
          // หน้าจอหลัก
          appBar: AppBar(
            title: Text("App Navi"),
          ),
          body: Login(),
        ),
      );
    }
  }
  </code></pre>
  
  <p>Login, Home file please see in image, beacause stackoverflow can't to post text "It looks like your post is mostly code; please add some more details."</p>
  
  <p><a href="https://i.stack.imgur.com/Sf0kx.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Sf0kx.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/CnXd1.png" rel="noreferrer"><img src="https://i.stack.imgur.com/CnXd1.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/M2Eoc.png" rel="noreferrer"><img src="https://i.stack.imgur.com/M2Eoc.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/QFwDY.png" rel="noreferrer"><img src="https://i.stack.imgur.com/QFwDY.png" alt="enter image description here"></a></p>