diff --git a/en/mobile/ios/development/index.html b/en/mobile/ios/development/index.html index dde32c171..566785432 100644 --- a/en/mobile/ios/development/index.html +++ b/en/mobile/ios/development/index.html @@ -1360,7 +1360,7 @@

Grouping elements Modify the focus area of VoiceOver < argument: myLabel) } +

+    Text("Some small text needing bigger focus area")
+        .border(Color.red)
+        .padding()
+        // The overlay does the trick
+        .overlay(
+            Rectangle()
+            // Adjust the lineWidth to expand the hit area
+            .stroke(Color.clear, lineWidth: 20)
+            // Negative padding to expand the hit area
+            .padding(-20)
+        )
+        .border(Color.blue)
+        .accessibilityElement()
+



Example 3 : B1.1 view as modal.

In this case, parent A and B2 (or possibly their subviews) are vocalized with the modal view: only B1.2 isn't read out by VoiceOver because it's B1.1 sibling.

@@ -2216,6 +2260,35 @@