Skip to content

Conversation

@jayana-cpc
Copy link
Collaborator

No description provided.

@jayana-cpc jayana-cpc linked an issue Nov 18, 2025 that may be closed by this pull request
} else {
locationImage
}
locationImage
Copy link
Collaborator

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

Comment on lines -31 to -37
if #available(iOS 17.0, *) {
listView
.contentMargins(.top, 0)
.contentMargins([.leading, .trailing], 5)
} else {
listView
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

same here as well

Comment on lines -32 to -39
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)
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

here

Comment on lines -21 to -28
if #available(iOS 17.0, *) {
SafetyNewMapView(selectedSafetyLog: $selectedSafetyLog,
isShowingLegend: $isShowingLegend,
drawerViewState: $drawerViewState,
isPresentingDetailView: isPresentingDetailView)
} else {
oldMapView
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

same thing here

Comment on lines -113 to -120
if #available(iOS 17.0, *) {
mapLegendButton
.contentTransition(
.symbolEffect(.replace)
)
} else {
mapLegendButton
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

same here

Comment on lines -55 to -59
.modify {
if #available(iOS 17.0, *) {
$0.scrollClipDisabled()
}
}
Copy link
Collaborator

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

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.

Remove iOS 17.0 Complier If Directives

3 participants