mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
drop iOS 17 and removed all #available and #unavaible checks for 17 and 18
This commit is contained in:
@@ -228,13 +228,9 @@ private struct FocusSearchIfHardwareKeyboardAvailableModifier: ViewModifier {
|
||||
@FocusState private var isFocused
|
||||
|
||||
func body(content: Content) -> some View {
|
||||
if #available(iOS 18.0, *) {
|
||||
content
|
||||
.searchFocused($isFocused)
|
||||
.onAppear(perform: focusIfHardwareKeyboardAvailable)
|
||||
} else {
|
||||
content
|
||||
}
|
||||
content
|
||||
.searchFocused($isFocused)
|
||||
.onAppear(perform: focusIfHardwareKeyboardAvailable)
|
||||
}
|
||||
|
||||
func focusIfHardwareKeyboardAvailable() {
|
||||
|
||||
Reference in New Issue
Block a user