From 4d0a1129eb3fa87fc9eda397b3a3319e544bdf30 Mon Sep 17 00:00:00 2001 From: Innei Date: Tue, 25 Feb 2025 22:42:24 +0800 Subject: [PATCH] chore: cleanup and format Signed-off-by: Innei --- apps/mobile/native/expo-module.config.json | 7 ++---- .../AppleIntelligenceGlowEffectModule.swift | 25 +------------------ 2 files changed, 3 insertions(+), 29 deletions(-) diff --git a/apps/mobile/native/expo-module.config.json b/apps/mobile/native/expo-module.config.json index ad09d04c1..937582675 100644 --- a/apps/mobile/native/expo-module.config.json +++ b/apps/mobile/native/expo-module.config.json @@ -1,8 +1,5 @@ { - "platforms": [ - "apple", - "android" - ], + "platforms": ["apple", "android"], "apple": { "modules": [ "SharedWebViewModule", @@ -14,4 +11,4 @@ "android": { "modules": [] } -} \ No newline at end of file +} diff --git a/apps/mobile/native/ios/AppleIntelligenceGlowEffect/AppleIntelligenceGlowEffectModule.swift b/apps/mobile/native/ios/AppleIntelligenceGlowEffect/AppleIntelligenceGlowEffectModule.swift index 81f9d1ff8..2e88a97cc 100644 --- a/apps/mobile/native/ios/AppleIntelligenceGlowEffect/AppleIntelligenceGlowEffectModule.swift +++ b/apps/mobile/native/ios/AppleIntelligenceGlowEffect/AppleIntelligenceGlowEffectModule.swift @@ -15,6 +15,7 @@ public class AppleIntelligenceGlowEffectModule: Module { public func definition() -> ModuleDefinition { Name("AppleIntelligenceGlowEffect") + Function("show") { DispatchQueue.main.async { [weak self] in guard let rootVC = Utils.getRootVC() else { return } @@ -63,27 +64,3 @@ public class AppleIntelligenceGlowEffectModule: Module { } } } - -final class AppleIntelligenceGlowEffectView: UIViewControllerRepresentable { - func makeUIViewController(context: Context) -> UIViewController { - let viewController = UIViewController() - let hostingController = UIHostingController(rootView: GlowEffect()) - - viewController.addChild(hostingController) - viewController.view.addSubview(hostingController.view) - hostingController.didMove(toParent: viewController) - - hostingController.view.translatesAutoresizingMaskIntoConstraints = false - NSLayoutConstraint.activate([ - hostingController.view.topAnchor.constraint(equalTo: viewController.view.topAnchor), - hostingController.view.bottomAnchor.constraint(equalTo: viewController.view.bottomAnchor), - hostingController.view.leadingAnchor.constraint(equalTo: viewController.view.leadingAnchor), - hostingController.view.trailingAnchor.constraint(equalTo: viewController.view.trailingAnchor), - ]) - - return viewController - } - func updateUIViewController(_ viewController: UIViewController, context: Context) { - - } -}