-
Notifications
You must be signed in to change notification settings - Fork 13
Remove iOS 17 availability checks and keep else case #475
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
base: master
Are you sure you want to change the base?
Conversation
| } else { | ||
| locationImage | ||
| } | ||
| locationImage |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should be keeping the condition with #available(iOS 17.0, *) instead of the the view in the else clause
| if #available(iOS 17.0, *) { | ||
| listView | ||
| .contentMargins(.top, 0) | ||
| .contentMargins([.leading, .trailing], 5) | ||
| } else { | ||
| listView | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here as well
| if #available(iOS 17.0, *) { | ||
| Map(bounds: MapCameraBounds(centerCoordinateBounds: mapRegion, minimumDistance: 2000)) { | ||
| SafetyMapMarker(safetyLog: selectedSafetyLog) | ||
| } | ||
| } else { | ||
| Map(coordinateRegion: .constant(mapRegion), annotationItems: [selectedSafetyLog]) { safetyLog in | ||
| MapPin(coordinate: safetyLog.coordinate) | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here
| if #available(iOS 17.0, *) { | ||
| SafetyNewMapView(selectedSafetyLog: $selectedSafetyLog, | ||
| isShowingLegend: $isShowingLegend, | ||
| drawerViewState: $drawerViewState, | ||
| isPresentingDetailView: isPresentingDetailView) | ||
| } else { | ||
| oldMapView | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same thing here
| if #available(iOS 17.0, *) { | ||
| mapLegendButton | ||
| .contentTransition( | ||
| .symbolEffect(.replace) | ||
| ) | ||
| } else { | ||
| mapLegendButton | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here
| .modify { | ||
| if #available(iOS 17.0, *) { | ||
| $0.scrollClipDisabled() | ||
| } | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should keep the .modify view modifier. Just have $0.scrollClipDisabled inside the .modify view modifier
No description provided.