This might be due to the issue discussed here: https://developer.apple.com/forums/thread/708097
For iOS 16, if you're using a UIText view it is probably using TextKit 2 which may cause crashes on iOS 16. The workaround is to access the layoutManager of the of the view: _ = textView.layoutManager