@DTS Engineer we believe we have found out the problem now...
We created a TSI and Apple suggested that we tried find the crashing code by isolation, i.e., pulling our code until the crash disappeared.
With some effort we managed to make a small demo app where the crash occurred.
We realised that we have a UIView, which is backed by CATiledLayer. But for this view we also had backgroundColor = .clear. Even without the view's draw(rect:) method the app could crash!
Apple's TSI engineer explained that if you have a view that implements draw(rect:) then you should not set the background color at the same time!
But we needed the background to be transparent, and so we found that setting isOpaque = false instead of setting the background color made the crash disappear!
We still believe that UIKit shouldn't crash if you set the background color, which it didn't do prior to iOS 26 :)
Topic:
App & System Services
SubTopic:
Networking
Tags: