sweetclimusic
04/04/2025, 9:31 AMAndrei Salavei
04/04/2025, 12:26 PMsweetclimusic
04/04/2025, 1:23 PMAndrei Salavei
04/04/2025, 1:32 PMsweetclimusic
04/04/2025, 1:37 PMAndrei Salavei
04/04/2025, 3:58 PMsemantics
or clearAndSetSemantics
modifierssweetclimusic
04/04/2025, 9:15 PMsemantics
, are you saying I can just lists out the accessibility api found in swiftui in the modifier?
.semantic {
accessibilityElement = { children = AccessibilityChildBehavior.ignore }
}
My end goal is to have children be ignored specifically if they have a contentDescription which is being used as a “non-accessibility” property for a nested element. Thanks again.Andrei Salavei
04/07/2025, 10:26 AMColumn(modifier = Modifier.clearAndSetSemantics {
// Setup new semantics here
}) {
Text("Text 1", modifier = Modifier.semantics {
contentDescription = "Text 1" // Won't be accessible or propagated to parent
})
Text("Text 2", modifier = Modifier.semantics {
contentDescription = "Text 2" // Won't be accessible or propagated to parent
})
}
sweetclimusic
04/14/2025, 7:58 AM