Skip to content

Instantly share code, notes, and snippets.

@nirav-tukadiya
Created June 24, 2019 12:57
Show Gist options
  • Save nirav-tukadiya/cab830e0466f43342c928e230369e402 to your computer and use it in GitHub Desktop.
Save nirav-tukadiya/cab830e0466f43342c928e230369e402 to your computer and use it in GitHub Desktop.
AppDelegate for AFEiOS
//
// AppDelegate.swift
// AFEiOS
//
// Created by NIRAV on 24/06/19.
// Copyright © 2019 NIRAV. All rights reserved.
//
import UIKit
import Flutter
import FlutterPluginRegistrant
@UIApplicationMain
class AppDelegate: FlutterAppDelegate {
var flutterEngine : FlutterEngine?;
override func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
self.flutterEngine = FlutterEngine(name: "io.flutter", project: nil);
self.flutterEngine?.run(withEntrypoint: nil);
GeneratedPluginRegistrant.register(with: self.flutterEngine);
return super.application(application, didFinishLaunchingWithOptions: launchOptions);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment