about summary refs log tree commit diff
path: root/modules/expo-bluesky-translate/ios/Common/UIHostingControllerCompat.swift
diff options
context:
space:
mode:
authorSamuel Newman <mozzius@protonmail.com>2024-06-11 18:51:03 +0100
committerGitHub <noreply@github.com>2024-06-11 10:51:03 -0700
commit3573f7ea40d41b8c416194da31fbbad092062679 (patch)
tree1b0080f9612edfdd6442a51fc904ddefc8f0478f /modules/expo-bluesky-translate/ios/Common/UIHostingControllerCompat.swift
parentfac5f6cdacadf552e51743b145a5d4de40eb15be (diff)
downloadvoidsky-3573f7ea40d41b8c416194da31fbbad092062679.tar.zst
rip out native translate (#4482)
Diffstat (limited to 'modules/expo-bluesky-translate/ios/Common/UIHostingControllerCompat.swift')
-rw-r--r--modules/expo-bluesky-translate/ios/Common/UIHostingControllerCompat.swift20
1 files changed, 0 insertions, 20 deletions
diff --git a/modules/expo-bluesky-translate/ios/Common/UIHostingControllerCompat.swift b/modules/expo-bluesky-translate/ios/Common/UIHostingControllerCompat.swift
deleted file mode 100644
index c8ca3e027..000000000
--- a/modules/expo-bluesky-translate/ios/Common/UIHostingControllerCompat.swift
+++ /dev/null
@@ -1,20 +0,0 @@
-import ExpoModulesCore
-import SwiftUI
-
-// Thanks to Andrew Levy for this code snippet
-// https://github.com/andrew-levy/swiftui-react-native/blob/d3fbb2abf07601ff0d4b83055e7717bb980910d6/ios/Common/ExpoView%2BUIHostingController.swift
-
-extension ExpoView {
-  func setupHostingController(_ hostingController: UIHostingController<some View>) {
-    hostingController.view.translatesAutoresizingMaskIntoConstraints = false
-    hostingController.view.backgroundColor = .clear
-
-    addSubview(hostingController.view)
-    NSLayoutConstraint.activate([
-      hostingController.view.topAnchor.constraint(equalTo: self.topAnchor),
-      hostingController.view.bottomAnchor.constraint(equalTo: self.bottomAnchor),
-      hostingController.view.leftAnchor.constraint(equalTo: self.leftAnchor),
-      hostingController.view.rightAnchor.constraint(equalTo: self.rightAnchor),
-    ])
-  }
-}