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

Feat/ios/dynamic navigation view #160

Merged
merged 11 commits into from
Jul 27, 2024
Merged

Conversation

Archdoog
Copy link
Collaborator

@Archdoog Archdoog commented Jul 18, 2024

  • Finishes the DynamicallyOrientingNavigationView (for now)
  • Breaking changes on args! Though it seems necessary to sync up with Android & simplify.
  • Removes hidden padding from InstructionView.

Closes #39 (not directly, but I think it safely wraps up the discussion)

@Archdoog Archdoog requested a review from ianthetechie July 18, 2024 01:05
@Archdoog Archdoog self-assigned this Jul 18, 2024
@Archdoog Archdoog marked this pull request as ready for review July 18, 2024 01:52
@Archdoog
Copy link
Collaborator Author

I checked the failed snapshot test diff & it was just a bit of the text rendering/alias on the speed limit sign. Probably need to add a percentage diff allowance here, but we can deal with that later.

@Archdoog Archdoog requested a review from ianthetechie July 26, 2024 04:47
Copy link
Contributor

@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.

Just some minor comments; this looks fantastic in testing though, so I'll go ahead and merge!

Comment on lines +22 to +25
public var topCenter: (() -> AnyView)?
public var topTrailing: (() -> AnyView)?
public var midLeading: (() -> AnyView)?
public var bottomTrailing: (() -> AnyView)?
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need to add these to the constructor? Or I guess there's an extension so maybe the idea is that you don't need to override(?) these very often so it's easier to just leave it to extension methods?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Nope. To keep the constructors sane, I think these only get modified exclusively through the extension view modifier style.

Comment on lines +20 to +23
public var topCenter: (() -> AnyView)?
public var topTrailing: (() -> AnyView)?
public var midLeading: (() -> AnyView)?
public var bottomTrailing: (() -> AnyView)?
Copy link
Contributor

Choose a reason for hiding this comment

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

Same question as above; different class ;)

@ianthetechie ianthetechie merged commit 735515b into main Jul 27, 2024
14 checks passed
@ianthetechie ianthetechie deleted the feat/ios/dynamic-navigation-view branch July 27, 2024 09:52
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.

First pass at snapped/following camera calculation
2 participants