Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Interface Builder can't set accessibility traits (Xcode 8)

Tags:

xcode

ios

I am having a weird problem in Interface Builder (Xcode 8). Basically, I can't enable (select) accessibility traits; IB is rejecting my attempt.

For example, I have a UILabel which has the "static text" and "user interaction enabled" traits enabled. I can click the "static text" checkbox to disable it. But then when I click it again to re-enable it, the checkbox briefly shows a minus ("-") which then disappears, leaving the checkbox unchecked.

I don't know how to re-enable that checkbox (or any other). Any solutions would be appreciated!

like image 468
Kenster999 Avatar asked Nov 11 '16 23:11

Kenster999


2 Answers

This has happened to me once. Try restarting Xcode.

like image 191
Peter Warbo Avatar answered Oct 02 '22 12:10

Peter Warbo


This was a bug introduced in Xcode 8, that affected inspector properties that map to bit mask properties. This includes iOS accessibility attributes, NSWindow style masks, and popover segue directions.

https://twitter.com/eternalstorms/status/776384102291431424

It's fixed in Xcode 8.3.

like image 20
Quinn Taylor Avatar answered Oct 02 '22 14:10

Quinn Taylor