From e020b01eba187edd7a885838eb2575d2c90458df Mon Sep 17 00:00:00 2001 From: pya35 Date: Thu, 18 Apr 2024 14:15:33 +0000 Subject: [PATCH] deploy: 346c796b8b772c71097e3951e9447f4d644735af --- en/mobile/ios/development/index.html | 234 +++++++++++++++++++++++- fr/mobile/ios/developpement/index.html | 241 +++++++++++++++++++++++-- 2 files changed, 459 insertions(+), 16 deletions(-) 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 @@