From 2024dcc1c38b539c204b0485bde65e230e14f32e Mon Sep 17 00:00:00 2001 From: JGZ_YES Date: Wed, 12 Aug 2026 13:26:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20Xcode=2016=20Beta=20?= =?UTF-8?q?=E7=BC=96=E8=AF=91=E9=94=99=E8=AF=AF=EF=BC=9AMainActor=20?= =?UTF-8?q?=E9=9A=94=E7=A6=BB=E3=80=81.allCharacters=E3=80=81=E9=A1=B9?= =?UTF-8?q?=E7=9B=AE=E5=85=BC=E5=AE=B9=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AreYouSleeping.xcodeproj/project.pbxproj | 6 +++--- AreYouSleeping/Services/BedtimeReminder.swift | 1 + AreYouSleeping/Views/FriendControlView.swift | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/AreYouSleeping.xcodeproj/project.pbxproj b/AreYouSleeping.xcodeproj/project.pbxproj index 16ed6eb..63b5883 100644 --- a/AreYouSleeping.xcodeproj/project.pbxproj +++ b/AreYouSleeping.xcodeproj/project.pbxproj @@ -123,11 +123,11 @@ isa = PBXProject; attributes = { BuildIndependentTargetsInParallel = 1; - LastSwiftUpdateCheck = 1500; - LastUpgradeCheck = 1500; + LastSwiftUpdateCheck = 1600; + LastUpgradeCheck = 1600; }; buildConfigurationList = 777777777777777702; - compatibilityVersion = "Xcode 14.0"; + compatibilityVersion = "Xcode 16.0"; developmentRegion = "zh-Hans"; hasScannedForEncodings = 0; knownRegions = ("zh-Hans", en, Base); diff --git a/AreYouSleeping/Services/BedtimeReminder.swift b/AreYouSleeping/Services/BedtimeReminder.swift index fae03ac..4cd999e 100644 --- a/AreYouSleeping/Services/BedtimeReminder.swift +++ b/AreYouSleeping/Services/BedtimeReminder.swift @@ -3,6 +3,7 @@ import UserNotifications /// 睡前 30 分钟提醒调度器(iOS 使用 UNUserNotificationCenter) enum BedtimeReminder { + @MainActor static func schedule(store: Store) { guard store.agreed, store.bedtimeReminderEnabled else { cancel() diff --git a/AreYouSleeping/Views/FriendControlView.swift b/AreYouSleeping/Views/FriendControlView.swift index e02a934..c08395d 100644 --- a/AreYouSleeping/Views/FriendControlView.swift +++ b/AreYouSleeping/Views/FriendControlView.swift @@ -12,7 +12,7 @@ struct FriendControlView: View { Section { HStack { TextField("输入朋友的控制码", text: $friendCode) - .textInputAutocapitalization(.characters) + .textInputAutocapitalization(.allCharacters) .disableAutocorrection(true) Button("查询") { lookupFriend() } .buttonStyle(.borderedProminent)