Skip to content

Commit

Permalink
Fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
daneden committed Jun 30, 2024
1 parent 6488b3a commit f5b2fa0
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Solstice/Detail View/DetailView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,15 @@ struct DetailView<Location: ObservableLocation>: View {
AnnualOverview(location: location)
}
#if os(watchOS)
.listRowBackground(Color.clear.background(.regularMaterial))
.modify { content in
if #available(watchOS 17, *) {
content
.listRowBackground(Color.clear.background(.regularMaterial, in: .buttonBorder))
} else {
content
.listRowBackground(Color.clear.background(.background, in: .buttonBorder))
}
}
#endif
.formStyle(.grouped)
.navigationTitle(navBarTitleText)
Expand Down

0 comments on commit f5b2fa0

Please sign in to comment.