Lower deployment target from iOS 26 to iOS 18, gate Foundation Models behind @available
Broadens installable audience to iOS 18+ while keeping AI insights available on iOS 26. Foundation Models types and service wrapped in @available(iOS 26, *), InsightsViewModel conditionally instantiates the service with fallback UI on older versions. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -30,6 +30,7 @@ enum InsightGenerationError: Error, LocalizedError {
|
||||
}
|
||||
|
||||
/// Service responsible for generating AI-powered mood insights using Apple's Foundation Models
|
||||
@available(iOS 26, *)
|
||||
@MainActor
|
||||
class FoundationModelsInsightService: ObservableObject {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user