This commit is contained in:
Leon Böttger committed 2025-10-05 14:01:37 +02:00
1 parent 86afa8a206
commit 1b1206d0b8
1 file changed
+1 -5
+1 -5
View File
@@ -32,11 +32,7 @@ class ShareViewController: UIViewController {
LUIInit(configuration: configuration) LUIInit(configuration: configuration)
LUISettings.sharedInstance.appLaunchedBefore = true LUISettings.sharedInstance.appLaunchedBefore = true
// Replace with your app’s SwiftUI entry view let hostingController = UIHostingController(rootView: ContentView())
let contentView = ContentView()
// Embed SwiftUI inside the extension’s controller
let hostingController = UIHostingController(rootView: contentView)
addChild(hostingController) addChild(hostingController)
hostingController.view.translatesAutoresizingMaskIntoConstraints = false hostingController.view.translatesAutoresizingMaskIntoConstraints = false