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

[iOS] Use synthesized init for ViewModels #876

Conversation

michalsrutek
Copy link

We can use synthesized init for struct-s and get rid of the manual init of view models.

@hfhbd
Copy link
Owner

hfhbd commented Jan 21, 2024

Did you test it?

@michalsrutek
Copy link
Author

Everything seems to be working fine - is there anything specific I should test?

@hfhbd
Copy link
Owner

hfhbd commented Aug 17, 2024

Thanks for the PR. I finally did some testing and it does not break anything. I added the implementation for a reason in the past because it didn't work without this init block, you always got a new view model with init values (like 0/empty strings) when navigating to another view and move back or opening control center.

I added the changes manually.

@hfhbd hfhbd closed this Aug 17, 2024
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.

None yet

2 participants