Xcode 26, _UIAccessibilityTraitToggleButton crash , under iOS 26

hi ,

There is a crash when we run on an **iOS 16 real device ** if we set a .toggleButton trait for accessibilty .

it has version check as apple doc refers (IOS 17 +) but it crashes

so there is someinconsistency between availbility in ios 18 + , somehow other xcodes made it available from 17

for now we commented our code , but would like dto report this to be fixed

cheers

Xcode 26, _UIAccessibilityTraitToggleButton crash , under iOS 26
 
 
Q