We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c465a6b commit a33a729Copy full SHA for a33a729
WooCommerce/Classes/View Modifiers/View+AutofocusTextModifier.swift
@@ -27,6 +27,8 @@ extension View {
27
/// Autofocus in `TextField` and `TextEditor` is available only for iOS15+
28
///
29
func focused() -> some View {
30
+ // Conditional check has to be done inside the Group function builder,
31
+ // otherwise the iOS 15 modifier will be loaded into memory and the app will crash.
32
Group {
33
if #available(iOS 15.0, *) {
34
self.modifier(AutofocusTextModifier())
0 commit comments