Attributed Labels in Xcode 11 GM

Hello devs,

I am working with Xcode 11 GM. Is it possible to work with AttributedStrings and UILabels or UITextViews?


The selection of a text-color in an attributed UILabel or UITextView does NOTHING! If I change the label to plain text, change the color and then change it back to attributedText it CRASHES!


Looks like a bug, do you have the same behaviour? How can a basic thing like that be completely broken?


Thanks in advance!

Replies

Do you try in IB or in code ?


If in code, could you post the code and show where it crashes ?


I tested in XCode 10.3.

- Set a UILabel as attributed.

- Selected red color

The color changes in the view

- Change the label to plain text,

Remains red

- Change the color

Chenged to green, view changes

- then change it back to attributedText

NO CRASH, remains green.


Could you restart XCode (if you did not after installation) or even restart the Mac ?


Could you test on 10.3 ?

I have the same issue, and actually I can't use the palette either (and use my custom colors).

I repeated the test on XCode 11 GM2.


No problem either. The color is changed each time, no crash.