UIMenuController formatting buttons problem in iOS11

I don't know if I have an error in my code, but it seems applying formatting to a text in a UITextView using the default bold and italics buttons are kind of buggy in iOS11. If I tap the bold button and then type text, only the first letter is bold and then it reverts to the regular font weight. If I select the entire text and make it bold, the oppsite occurs - if I place the cursor at the end of the text and tap the bold button (to turn it off) to enter regular text, only the first letter I enter has the regular weight - all characters I enter afterwards appear in bold and the button revert to its "on" state.


If I do this in iOS10, everthing works as intended however.


Has anything changed in iOS11 that I don't know about, or is this a bug?

I filed a bug for this. The bug # is 35386813 if anyone is interested.

UIMenuController formatting buttons problem in iOS11
 
 
Q