diff --git a/LoopSupport.xcodeproj/project.pbxproj b/LoopSupport.xcodeproj/project.pbxproj index 7d1cc0b..691c0c0 100644 --- a/LoopSupport.xcodeproj/project.pbxproj +++ b/LoopSupport.xcodeproj/project.pbxproj @@ -477,7 +477,7 @@ GCC_WARN_UNUSED_LABEL = YES; GCC_WARN_UNUSED_PARAMETER = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 15.1; + IPHONEOS_DEPLOYMENT_TARGET = 17.6; LOCALIZATION_PREFERS_STRING_CATALOGS = YES; LOCALIZED_STRING_MACRO_NAMES = ( NSLocalizedString, @@ -582,7 +582,7 @@ GCC_WARN_UNUSED_LABEL = YES; GCC_WARN_UNUSED_PARAMETER = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 15.1; + IPHONEOS_DEPLOYMENT_TARGET = 17.6; LOCALIZATION_PREFERS_STRING_CATALOGS = YES; LOCALIZED_STRING_MACRO_NAMES = ( NSLocalizedString, diff --git a/LoopSupportKitUI/LoopSupportUI.swift b/LoopSupportKitUI/LoopSupportUI.swift index 45f6790..e5b6a8f 100644 --- a/LoopSupportKitUI/LoopSupportUI.swift +++ b/LoopSupportKitUI/LoopSupportUI.swift @@ -13,7 +13,7 @@ import LoopKitUI public final class LoopSupportUI: SupportUI { - public static var pluginIdentifier: String = "LoopSupportUI" + public var pluginIdentifier: String = "LoopSupportUI" private var analytics = LoopKitAnalytics.shared @@ -60,7 +60,8 @@ public final class LoopSupportUI: SupportUI { public func loopWillReset() { } public func loopDidReset() { } - + + public func trainingMedia(for domain: TrainingMediaDomain) -> [MediaContent] { [] } } // LoopSupport also provides analytics diff --git a/LoopSupportKitUI/Views/UsageDataPrivacyPreferenceView.swift b/LoopSupportKitUI/Views/UsageDataPrivacyPreferenceView.swift index 02b2a9c..bb6e2c1 100644 --- a/LoopSupportKitUI/Views/UsageDataPrivacyPreferenceView.swift +++ b/LoopSupportKitUI/Views/UsageDataPrivacyPreferenceView.swift @@ -23,7 +23,7 @@ public struct UsageDataPrivacyPreferenceView: View { self.didFinish = didFinish } - private func choice(title: String, description: String, sharingPreference: UsageDataPrivacyPreference) -> CheckmarkListItem { + private func choice(title: String, description: String, sharingPreference: UsageDataPrivacyPreference) -> CheckmarkListItem { CheckmarkListItem( title: Text(title), description: Text(description), diff --git a/LoopSupportPlugin/LoopSupportPlugin.swift b/LoopSupportPlugin/LoopSupportPlugin.swift index b3e0c93..356ad04 100644 --- a/LoopSupportPlugin/LoopSupportPlugin.swift +++ b/LoopSupportPlugin/LoopSupportPlugin.swift @@ -13,6 +13,7 @@ import LoopSupportKitUI class LoopSupportPlugin: NSObject, SupportUIPlugin { private let log = OSLog(category: "LoopSupportPlugin") + @MainActor public let support: SupportUI = LoopSupportUI() override init() {