I could reproduce the issue with this sample code in both of the environments below.
Xcode 16.0 (16A242d), iOS 18.0 simulator
Xcode 16.1 beta (16B5001e), iOS 18.1 simulator
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: