// // FeelsMoodControlWidget.swift // FeelsWidget // // Control Center widget for quick mood logging // import WidgetKit import SwiftUI import AppIntents // MARK: - Control Center Widget struct FeelsMoodControlWidget: ControlWidget { var body: some ControlWidgetConfiguration { StaticControlConfiguration(kind: "FeelsMoodControl") { ControlWidgetButton(action: OpenFeelsIntent()) { Label("Log Mood", systemImage: "face.smiling") } } .displayName("Log Mood") .description("Open Feels to log your mood") } } // MARK: - Open App Intent struct OpenFeelsIntent: AppIntent { static var title: LocalizedStringResource = "Open Feels" static var description = IntentDescription("Open the Feels app to log your mood") static var openAppWhenRun: Bool = true func perform() async throws -> some IntentResult { return .result() } }