diff options
author | Samuel Newman <mozzius@protonmail.com> | 2024-06-11 18:51:03 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-11 10:51:03 -0700 |
commit | 3573f7ea40d41b8c416194da31fbbad092062679 (patch) | |
tree | 1b0080f9612edfdd6442a51fc904ddefc8f0478f /modules/expo-bluesky-translate/ios/TranslateView.swift | |
parent | fac5f6cdacadf552e51743b145a5d4de40eb15be (diff) | |
download | voidsky-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.swift | 31 |
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) {} -} |