live activity: fix compact strip string interpolation (double backslash)
The compact CarPlay/Watch strip's second line had escaped interpolation (\\( instead of \\() so it rendered the literal placeholder text "context.state.stationName · context.state.distanceText" instead of the actual station name and distance. Normalize to single-backslash interpolation.
This commit is contained in:
@@ -141,7 +141,7 @@ private struct FuelBoardLiveActivityView: View {
|
|||||||
size: 15, weight: .bold)
|
size: 15, weight: .bold)
|
||||||
.lineLimit(1)
|
.lineLimit(1)
|
||||||
}
|
}
|
||||||
Text("\\(context.state.stationName) · \\(context.state.distanceText)")
|
Text("\(context.state.stationName) · \(context.state.distanceText)")
|
||||||
.font(.system(size: 9))
|
.font(.system(size: 9))
|
||||||
.foregroundStyle(.secondary)
|
.foregroundStyle(.secondary)
|
||||||
.lineLimit(1)
|
.lineLimit(1)
|
||||||
|
|||||||
Reference in New Issue
Block a user