setAttributedText crashes with newline in TodayViewController(Widget)

[label setAttributedText: [[NSAttributedString alloc] initWithString: @"\n"]];


will result in an EXC_BAD_INSTRUCTION


Exception only happens when newline is the string, all other strings are fine. Only happens in widget / today view.


(label is a normal UILabel)


Apple, can you fix this? (same code worked fine in iOS 12)

The problem only occurs in iPadOS.

setAttributedText crashes with newline in TodayViewController(Widget)
 
 
Q