using System; using System.Collections.Generic; using System.Linq; using Foundation; using UIKit; using Xamarin.Forms; namespace XamarinInsights.iOS { [Register ("AppDelegate")] public partial class AppDelegate : UIApplicationDelegate { UIWindow window; public override bool FinishedLaunching (UIApplication app, NSDictionary options) { Forms.Init (); App.RunOnMainThread = (a) => this.BeginInvokeOnMainThread (() => a ()); window = new UIWindow (UIScreen.MainScreen.Bounds); window.RootViewController = App.GetMainPage ().CreateViewController (); window.MakeKeyAndVisible (); return true; } } }