Hi all - i'm encountering a strange issue since updating to Xcode 26.0.1.
It seems that any SwiftUI Views that have an :ObservedObject
property that contains @Published
properties, and use those properties inside the View, no longer update when those properties are updated when the view also has an @Environment
property.
If I remove the @Environment
property and any usage of it, the view updates correctly.
The specific environment property i'm using is .safeAreaInsets
, like so:
@Environment(\.safeAreaInsets) private var safeAreaInsets
Is this a recognised bug in the latest iOS 26 SDK?
Thanks
We recommend you use the Observable macro instead. Please review Migrating from the Observable Object protocol to the Observable macro and apply the changes to your project.
If you’re able to reproduce the issue using the Observable macro, please share a link to a sample project that reproduces the issue.