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

Use NavigationStack + @Observable #10

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

boscojwho
Copy link

@boscojwho boscojwho commented Aug 10, 2024

I was trying out NiceArchitecture, and made some small changes because I wanted to test it using Apple's newer @Observable and NavigationStack APIs:

  • Only PostsCoordinator uses @Observable.
  • Seems like the other view models/ObservableVM itself require a lot(?) more work to adopt @Observable.
  • PostsView reloading its entire list on (re)appear isn't a regression, the bindToVM approach is...interesting, hmm 🤔 (have some thoughts on that for sure 😅)

Feel free to merge this in if needed, and setting deployment target to 17.0 isn't an issue =)

~ Replace deprecated NavigationView with NavigationStack.
~ Replace ObservableObject with @observable [PostsCoordinator].
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.

1 participant