File tree 2 files changed +5
-1
lines changed
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 1
1
## Next
2
2
3
+ - fix: read accessibilityLabel from parent's view to avoid performance hit on RN ([ #259 ] ( https://github.com/PostHog/posthog-ios/pull/259 ) )
4
+
3
5
## 3.15.5 - 2024-11-19
4
6
5
7
- fix: properly mask SwiftUI Text (and text-based views) ([ #257 ] ( https://github.com/PostHog/posthog-ios/pull/257 ) )
Original file line number Diff line number Diff line change 22
22
if let identifier = accessibilityIdentifier {
23
23
isNoCapture = checkLabel ( identifier)
24
24
}
25
- if let label = accessibilityLabel, !isNoCapture {
25
+ // read accessibilityLabel from the parent's view to skip the RCTRecursiveAccessibilityLabel on RN which is slow and may cause an endless loop
26
+ // see https://github.com/facebook/react-native/issues/33084
27
+ if let label = super. accessibilityLabel, !isNoCapture {
26
28
isNoCapture = checkLabel ( label)
27
29
}
28
30
You can’t perform that action at this time.
0 commit comments