4️⃣Configuring Widgets
Fall 2023 | Reade Plunkett
AppIntents
Creating a New Intent
import WidgetKit
import AppIntents
struct LocationAppIntent: WidgetConfigurationIntent {
}static var title: LocalizedStringResource = "Location"
static var description = IntentDescription("Enter a location to view the weather.")@Parameter(title: "Location", default: "Ithaca, NY")
var location: StringChanges to WeatherEntry
Changes to WeatherTimelineProvider
Changes to Widget Configuration
Changes to View
Last updated
Was this helpful?