소스 검색

Show auth status for Health

Ivan Valkou 4 년 전
부모
커밋
16a6a053bb
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      FreeAPS/Sources/Modules/HealthKit/HealthKitStateModel.swift

+ 2 - 0
FreeAPS/Sources/Modules/HealthKit/HealthKitStateModel.swift

@@ -11,6 +11,8 @@ extension AppleHealthKit {
         override func subscribe() {
             useAppleHealth = settingsManager.settings.useAppleHealth
 
+            needShowInformationTextForSetPermissions = healthKitManager.areAllowAllPermissions
+
             subscribeSetting(\.useAppleHealth, on: $useAppleHealth) {
                 useAppleHealth = $0
             } didSet: { [weak self] value in