Widget gallery order + default-widget skeleton fix. (1) Register FuelPriceSmallWidget BEFORE FuelPriceWidget so the gallery lists small, then medium (bundle order = gallery order). (2) Revert entity resolution to LENIENT: the timeline request resolves the full configuration through the entity queries, and the b1765b5 strict entities(for:) (nil for the empty default favourite 'fuel|') failed resolution for default-config small widgets, stranding them on the iOS skeleton placeholder. entities(for:) now always returns a value; defaultResult() still auto-populates fresh widgets to the first fuel with a favourite / first favourite of that fuel.
This commit is contained in:
@@ -4,8 +4,9 @@ import SwiftUI
|
||||
@main
|
||||
struct FuelBoardWidgetsBundle: WidgetBundle {
|
||||
var body: some Widget {
|
||||
FuelPriceWidget()
|
||||
// Gallery order follows registration order: small first, then medium.
|
||||
FuelPriceSmallWidget()
|
||||
FuelPriceWidget()
|
||||
FuelBoardLiveActivity()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user