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

[Update] Use model to manage geo view and data #107

Merged
merged 67 commits into from
Feb 8, 2023
Merged

Conversation

yo1995
Copy link
Collaborator

@yo1995 yo1995 commented Jan 4, 2023

Description

This PR changes the @StateObject pattern in most of the samples, to use an observable model object to manage the data.

Linked Issue(s)

How To Test

To run the app, you'll need to

  1. replace the toolkit dependency line in Package.swift locally with .package(name: "arcgis-maps-sdk-swift", path: "../swift/ArcGIS").
  2. drag the toolkit into the samples project, so it overrides the remote resolved packages and uses the local toolkit repo instead.

No behavioral change should present. Verify all changed sample to work as expected.

To Discuss

  • What should be a good generic docstring for the view model objects?

@yo1995 yo1995 self-assigned this Jan 4, 2023
Copy link
Contributor

@dfeinzimer dfeinzimer left a comment

Choose a reason for hiding this comment

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

Good to go from my perspective after this open discussion has some resolution.

dfeinzimer
dfeinzimer previously approved these changes Jan 31, 2023
Copy link
Contributor

@dfeinzimer dfeinzimer left a comment

Choose a reason for hiding this comment

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

The cash I reported last time appears to be resolved with the latest changes.

dfeinzimer
dfeinzimer previously approved these changes Feb 1, 2023
Add guarding conditions to avoid unexpected outcomes.

Co-authored-by: Philip Ridgeway <[email protected]>
@yo1995 yo1995 dismissed stale reviews from philium and dfeinzimer via 8bec8e9 February 7, 2023 18:56
@yo1995
Copy link
Collaborator Author

yo1995 commented Feb 8, 2023

Thanks for the suggestions. I'll fix other issues in the upcoming PRs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

3 participants