diff --git a/macos/Sources/Helpers/Backport.swift b/macos/Sources/Helpers/Backport.swift index 37c2c8089..168612221 100644 --- a/macos/Sources/Helpers/Backport.swift +++ b/macos/Sources/Helpers/Backport.swift @@ -132,8 +132,8 @@ enum BackportNSGlassStyle { #endif } -/// Backported `TextField` that supports text selection on macOS 15 and up. The `selection` has no -/// effect on versions below macOS 15. +/// Backported `TextField` that supports text selection on macOS 15/iOS 18 and up. The `selection` +/// has no effect on versions below macOS 15/iOS 18. struct BackportSelectionTextField: View { private let titleKey: LocalizedStringKey @Binding private var text: String @@ -150,7 +150,7 @@ struct BackportSelectionTextField: View { } var body: some View { - if #available(macOS 15, *) { + if #available(iOS 18.0, macOS 15, *) { TextField( titleKey, text: _text,