Are SwiftUI Text views with empty strings optimized out in iOS 18?

A UI test case that checks for the existence of a SwiftUI Text element initialized with an empty string previously reliably passed in iOS 17.

In iOS 18 the assertion reliably fails.

I searched the iOS 18 developer release notes for anything possibly related to this but didn't find much. I'd like to point to a conclusive change in iOS handling before changing the test permantently. Can anyone confirm that this is indeed a change in iOS 18?

Are SwiftUI Text views with empty strings optimized out in iOS 18?
 
 
Q