From ed521606122cde73f0072abc6a7caa5da7dc4829 Mon Sep 17 00:00:00 2001 From: Nolin McFarland Date: Sun, 17 May 2026 12:33:56 -0400 Subject: [PATCH] feat: support BackportSelectionTextField on iOS 18 --- macos/Sources/Helpers/Backport.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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,