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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user