Live Activity: price now respects the Price display style — style carried in ContentState (captured at push time, extension renders deterministically instead of re-reading storage), setting change pushes an in-place content update via explicit override (no save-ordering race)

This commit is contained in:
FuelBoard Contributor
2026-08-14 21:06:04 +01:00
parent 8a589a35c1
commit bfb59d498a
4 changed files with 29 additions and 7 deletions
+4
View File
@@ -25,6 +25,10 @@ struct FuelBoardLiveActivityAttributes: ActivityAttributes {
var brand: String
/// Price in pence per litre (same unit as `FuelStation.prices`).
var pricePence: Double
/// Display style at push time (station sign vs pounds & pence) carried
/// in the state so the extension renders deterministically instead of
/// re-reading storage that may not be shared on sideloads.
var priceDisplayStyle: PriceDisplayStyle
var distanceKM: Double
var lat: Double
var lng: Double