mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2025-02-01 23:26:42 +01:00
Fix Catalyst build
This commit is contained in:
parent
ce3e2d2344
commit
904cd3dbd7
@ -5,11 +5,15 @@ import SwiftUI
|
||||
|
||||
public extension View {
|
||||
func addTranslateView(isPresented: Binding<Bool>, text: String) -> some View {
|
||||
#if targetEnvironment(macCatalyst)
|
||||
return self
|
||||
#else
|
||||
if #available(iOS 17.4, *) {
|
||||
return self.translationPresentation(isPresented: isPresented, text: text)
|
||||
} else {
|
||||
return self
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user