about summary refs log tree commit diff
path: root/modules/expo-bluesky-translate/ios/TranslateView.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/TranslateView.swift
parentfac5f6cdacadf552e51743b145a5d4de40eb15be (diff)
downloadvoidsky-3573f7ea40d41b8c416194da31fbbad092062679.tar.zst
rip out native translate (#4482)
Diffstat (limited to 'modules/expo-bluesky-translate/ios/TranslateView.swift')
-rw-r--r--modules/expo-bluesky-translate/ios/TranslateView.swift31
1 files changed, 0 insertions, 31 deletions
diff --git a/modules/expo-bluesky-translate/ios/TranslateView.swift b/modules/expo-bluesky-translate/ios/TranslateView.swift
deleted file mode 100644
index e2886dc84..000000000
--- a/modules/expo-bluesky-translate/ios/TranslateView.swift
+++ /dev/null
@@ -1,31 +0,0 @@
-import SwiftUI
-// conditionally import the Translation module
-#if canImport(Translation)
-import Translation
-#endif
-
-struct TranslateView: View {
-  @ObservedObject var state = TranslateViewState.shared
-
-  var body: some View {
-    if #available(iOS 17.4, *) {
-      VStack {
-        UIViewRepresentableWrapper(view: UIView(frame: .zero))
-      }
-      .translationPresentation(
-        isPresented: $state.isPresented,
-        text: state.text
-      )
-    }
-  }
-}
-
-struct UIViewRepresentableWrapper: UIViewRepresentable {
-  let view: UIView
-
-  func makeUIView(context: Context) -> UIView {
-    return view
-  }
-
-  func updateUIView(_ uiView: UIView, context: Context) {}
-}