import SwiftUI
import WidgetKit

// Multi-widget entry point. Apple's documented pattern for shipping
// more than one widget from a single extension target (see
// `WidgetBundle` — "If you want to support multiple kinds of widgets,
// add the @main attribute to a type that conforms to the WidgetBundle
// protocol").
//
// The bundle exposes two widgets to the watch-face gallery:
//
//   - HalflightTapestryComplication — the original tile, a snapshot
//     of the active account's tapestry weave.
//   - HalflightLatestMediaComplication — the most recent media post
//     from the active account's home feed, with a thumbnail and
//     @handle caption. Tap routes into the watch app's Feed tab.
//
// Both widgets compile inside the same extension binary, share the
// same App Group, and use the same UTC-day reload-budget audit. They
// declare independent `kind` strings so `WidgetCenter.reloadTimelines`
// targets each one without affecting the other.

@main
struct HalflightWidgets: WidgetBundle {
    var body: some Widget {
        HalflightTapestryComplication()
        HalflightLatestMediaComplication()
    }
}
