Skip to content

Conversation

@kaascevich
Copy link
Contributor

environment(_:_:) on Scene behaves almost identically to the corresponding modifier on View, setting the given environment value for all views in the scene. transformEnvironment(_:transform:) is similar, but allows the caller to perform arbitrary operations on the environment value rather than being limited to overwriting it entirely. (Both APIs have equivalents in SwiftUI.)

Copy link
Owner

@stackotter stackotter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for implementing this 🙏 These modifiers will be useful

@stackotter stackotter merged commit d0c562f into stackotter:main Jan 5, 2026
11 checks passed
@kaascevich kaascevich deleted the scene-environment-modifier branch January 5, 2026 03:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants