Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moved to EnvironmentObject for WorkspaceDocument and StatusBarViewModel #966

Merged
merged 2 commits into from
Jan 14, 2023

Conversation

Wouter01
Copy link
Member

@Wouter01 Wouter01 commented Jan 14, 2023

Signed-off-by: Wouter01 [email protected]

Description

Lots of views used @ObservedObject for passing down WorkspaceDocument and StatusBarViewModel.
This created lots of boilerplate code and made it tedious if you wanted to modify the view structure.

This PR moves those dependencies to the Environment, which makes for a cleaner structure, and possibly a bit more performant.

Related Issue

Checklist

  • I read and understood the contributing guide as well as the code of conduct
  • My changes generate no new warnings
  • My code builds and runs on my machine
  • I documented my code
  • Review requested

Signed-off-by: Wouter01 <[email protected]>
Signed-off-by: Wouter01 <[email protected]>
Copy link
Member

@lukepistrol lukepistrol left a comment

Choose a reason for hiding this comment

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

Awesome work!

Copy link
Contributor

@bombardier200 bombardier200 left a comment

Choose a reason for hiding this comment

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

Great Job!

Copy link
Collaborator

@austincondiff austincondiff left a comment

Choose a reason for hiding this comment

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

Looks great!

@Wouter01 Wouter01 merged commit ad92734 into CodeEditApp:main Jan 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants