diff --git a/Emgu.TF.Example/Maui.Lite/Platforms/MacCatalyst/AppDelegate.cs b/Emgu.TF.Example/Maui.Lite/Platforms/MacCatalyst/AppDelegate.cs new file mode 100644 index 00000000..0c7793af --- /dev/null +++ b/Emgu.TF.Example/Maui.Lite/Platforms/MacCatalyst/AppDelegate.cs @@ -0,0 +1,9 @@ +using Foundation; + +namespace Maui.Demo.Lite; + +[Register("AppDelegate")] +public class AppDelegate : MauiUIApplicationDelegate +{ + protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp(); +} diff --git a/Emgu.TF.Example/Maui.Lite/Platforms/MacCatalyst/Info.plist b/Emgu.TF.Example/Maui.Lite/Platforms/MacCatalyst/Info.plist new file mode 100644 index 00000000..c96dd0a2 --- /dev/null +++ b/Emgu.TF.Example/Maui.Lite/Platforms/MacCatalyst/Info.plist @@ -0,0 +1,30 @@ + + + + + UIDeviceFamily + + 1 + 2 + + UIRequiredDeviceCapabilities + + arm64 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + XSAppIconAssets + Assets.xcassets/appicon.appiconset + + diff --git a/Emgu.TF.Example/Maui.Lite/Platforms/MacCatalyst/Program.cs b/Emgu.TF.Example/Maui.Lite/Platforms/MacCatalyst/Program.cs new file mode 100644 index 00000000..e15a2375 --- /dev/null +++ b/Emgu.TF.Example/Maui.Lite/Platforms/MacCatalyst/Program.cs @@ -0,0 +1,15 @@ +using ObjCRuntime; +using UIKit; + +namespace Maui.Demo.Lite; + +public class Program +{ + // This is the main entry point of the application. + static void Main(string[] args) + { + // if you want to use a different Application Delegate class from "AppDelegate" + // you can specify it here. + UIApplication.Main(args, null, typeof(AppDelegate)); + } +}