diff options
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) {} -} |