From 1b1206d0b8d1946529ddbf47a7bdd3f3b0ae67f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leon=20B=C3=B6ttger?= Date: Sun, 5 Oct 2025 14:01:37 +0200 Subject: [PATCH] Comments --- iOSShareExtension/ShareViewController.swift | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/iOSShareExtension/ShareViewController.swift b/iOSShareExtension/ShareViewController.swift index bf6de4d..bbf6a51 100644 --- a/iOSShareExtension/ShareViewController.swift +++ b/iOSShareExtension/ShareViewController.swift @@ -31,12 +31,8 @@ class ShareViewController: UIViewController { // skip introduction for share extension LUIInit(configuration: configuration) LUISettings.sharedInstance.appLaunchedBefore = true - - // Replace with your app’s SwiftUI entry view - let contentView = ContentView() - - // Embed SwiftUI inside the extension’s controller - let hostingController = UIHostingController(rootView: contentView) + + let hostingController = UIHostingController(rootView: ContentView()) addChild(hostingController) hostingController.view.translatesAutoresizingMaskIntoConstraints = false