Skip to content

Use self.init instead of setting member variables directly. #80

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

Merged
merged 1 commit into from
Apr 28, 2025

Conversation

bolsinga
Copy link
Contributor

Issue/Motivation

  • This way if the MapView initializer should change, it will be a little more obvious for this client when re-building.

What issue is this PR targeting?
None

Tasklist

  • Include tests (if applicable) and examples (new or edits)
  • If there are any visual changes as a result, include before/after screenshots and/or videos
  • Add #fixes with the issue number that this PR addresses
  • Update any documentation for affected APIs
  • Update the CHANGELOG

- This way if the initializer should change, it will be a little more obvious for this client when re-building.
Copy link
Collaborator

@Archdoog Archdoog left a comment

Choose a reason for hiding this comment

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

This is definitely a little easier to follow 👍

bolsinga added a commit to bolsinga/swiftui-dsl that referenced this pull request Apr 25, 2025
- Typically in an application, there is one MNMapView. When using CarPlay, there are two. This helps debugging the scenario so that two views can be distinguished from each other when debugging.
- It sets the `UIView.tag` property of the `MLNMapView` to the enum's rawValue. It also exists in its enumerated type elsewhere.

Depends upon maplibre#80
Copy link
Collaborator

@ianthetechie ianthetechie left a comment

Choose a reason for hiding this comment

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

Good change; thanks!

@ianthetechie ianthetechie merged commit 9324755 into maplibre:main Apr 28, 2025
2 checks passed
ianthetechie added a commit that referenced this pull request Apr 28, 2025
* Use self.init instead of setting member variables directly.

- This way if the initializer should change, it will be a little more obvious for this client when re-building.

* Add MapActivity to track what MapView is being used for.

- Typically in an application, there is one MNMapView. When using CarPlay, there are two. This helps debugging the scenario so that two views can be distinguished from each other when debugging.
- It sets the `UIView.tag` property of the `MLNMapView` to the enum's rawValue. It also exists in its enumerated type elsewhere.

Depends upon #80

---------

Co-authored-by: Ian Wagner <ian.wagner@stadiamaps.com>
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.

3 participants