Add map zoom in button to main screen - #17
Draft
anamhira47 wants to merge 3 commits into
Draft
Conversation
Introduce a floating zoom-in control on the parking map that halves the visible region span while keeping the current center. Track the visible region via onMapCameraChange so pinch gestures and programmatic moves stay in sync with button zoom. Co-authored-by: Anam Hira <anam@revyl.ai>
Co-authored-by: Anam Hira <anam@revyl.ai>
Check in the shared Xcode build settings and SweepAlert Swift app ID so Revyl dev loops can start without interactive init. Co-authored-by: Anam Hira <anam@revyl.ai>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a floating Zoom in control to the main parking map on
ContentView. The button sits below the header on the trailing edge and matches the existing circular map chrome (ultra-thin material, stroke, shadow).Tapping the button halves the visible map span around the current center. The visible region is tracked with
onMapCameraChangeso pinch gestures and programmatic camera moves stay in sync with button zoom.Changes
mapZoomInButtonoverlay on the main map screenvisibleMapRegionstate +onMapCameraChangeto track the current viewportzoomIn()andzoomedInRegion(from:)helpers with a minimum span clampDevice verification
Revyl remote build + device instruction on context
ios-native:plus.magnifyingglass) below the header on the right; tapping it zooms the map closer to the current center.Before
Main map before tapping zoom in
After
Main map after tapping zoom in
Accessibility
Zoom inmap-zoom-in-buttonTo show artifacts inline, enable in settings.