I'm building an app that allows you to configure time limits for specific apps just like the native Screen Time app, but I'm having trouble replicating Screen Time's Customize Days feature. I can quite easily create an event that triggers once a particular usage is reached within an activity, but I'm having issues getting different days of the week to have different limits. I'm trying to achieve this by creating different events for each day of the week and assigning them all to a single activity that runs every day: // DeviceActivity receiving event: 00:00 -> 23:59, every day // limits: [UsageLimit(hours: Int, minutes: Int)] let calendar = Calendar(identifier: .gregorian) for (weekday, limit) in limits.days.enumerated() { let name = DeviceActivityEvent.Name(baseName+|time-limit-(weekday)) events[name] = .init( applications: selection.applications, categories: selection.categories, webDomains: selection.webDomains, threshold: .init( calendar: calendar, hour: limit.hours,
Search results for
calendar
1,864 results found
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
Until they fix this, I suggest that you unsubscribe from all shared Google calendars in https://calendar.google.com/, then refresh the iOS Calendar app. That's the only fix that I know of
Topic:
App & System Services
SubTopic:
General
Tags:
Something seems to have changed in the iOS16.1 beta regarding EventKit authorization in extensions - is anybody else seeing this? We have widgets that were able to access calendars and events previously, and are no longer able to do so. Checking EKAuthorizationStatus when debugging the Widget extension is now giving us a status of .denied.
To make SwiftUI's DatePicker display different calendars, you need to set the calendar environment value. .environment(.calendar, Calendar(identifier: .hebrew) Using your example, to display a Hebrew calendar add the modifier above Struct DateView: View { @State var selectedDate = Date() let dateFormatter: DateFormatter = { let formatter = DateFormatter() formatter.dateStyle = .medium return formatter }() var body: some View { DatePicker(Please enter a date, selection: $selectedDate, displayedComponents: .date) .datePickerStyle(WheelDatePickerStyle()) .environment(.calendar, Calendar(identifier: .hebrew)) Divider() Text (You selected (selectedDate,formatter: dateFormatter)) Spacer() } }
Topic:
Programming Languages
SubTopic:
Swift
Tags:
does anyone know how to configure Swift DatePicker using a set Calendar identifier so that the calendar display on the date picker is in identified months and dates (e.g., Hebrew, Ethiopic, etc.) without setting an environmental locale? Struct DateView: View { @State var selectedDate = Date() let dateFormatter: DateFormatter = { let formatter = DateFormatter() formatter.dateStyle = .medium return formatter }() var body: some View { DatePicker(Please enter a date, selection: $selectedDate, displayedComponents: .date) .datePickerStyle(WheelDatePickerStyle()) Divider() Text (You selected (selectedDate,formatter: dateFormatter)) Spacer() } }
Found a work around explained in step 2 here: https://www.tenorshare.com/ios-file-transfer/how-to-sync-google-calendar-to-iphone-and-ipad.html Basically uncheck the shared calendars from this location. http://www.google.com/calendar/iphoneselect This is different from unchecking via the native iOS Calendar App. It’s certainly an iOS 16 issue.
Topic:
App & System Services
SubTopic:
General
Tags:
Apple itself offers a nice piece of code for adding own addresses to Contacts-App. (see documentation for Contacts - Listing 1 Creating a contact) I try to use this code. But when executing this, my app crashes with error on saving the data. (see image) My code so far: import AppKit import Contacts class ContactsClass { func addToContacts( lastName: String, firstName: String, birthDate: Date?, mail: String = , phone1: String = , phone2: String = , mobile: String = , street: String, city: String, postCode: String ) { // Create a mutable object to add to the contact let contact = CNMutableContact() contact.givenName = firstName contact.familyName = lastName if mail != { let homeEmail = CNLabeledValue(label: CNLabelHome, value: mail as NSString) contact.emailAddresses = [homeEmail] } contact.phoneNumbers = [] if phone1 != { contact.phoneNumbers.append(CNLabeledValue(label: CNLabelPhoneNumberMain, value: CNPhoneNumber(stringValue: phone1))) } if phone2 != { contact.phoneNumbers.append(CNLabeledValue(label: CNL
So we have produced kexts that run well, on Intel and Arm64, on (for example) an MBP/M1 (all macOS currently available), and MacStudio (Monterey). But on Monterey + Ventura it enters a boot panic loop. One example is: build : macOS 13.1 (22C5033e), product : Mac13,2, socId : 0x00006002, kernel : Darwin Kernel Version 22.2.0: Sun Oct 16 18:09:52 PDT 2022; root:xnu-8792.60.32.0.1~11/RELEASE_ARM64_T6000, incident : 8D3814E3-DCBB-42A6-AACF-C37F66D6BBC8, crashReporterKey : FF922DC9-99E1-68B9-75FB-9427F2BBF431, date : 2022-10-28 00:12:53.22 +0100, panicString : panic(cpu 6 caller 0xfffffe001e4b11e8): apciec[pcic2-bridge]::handleInterrupt: Request address is greater than 32 bits linksts=0x99000001 pcielint=0x02220060 linkcdmsts=0x00000000 (ltssm 0x11=L0)n @AppleT8103PCIeCPort.cpp:1301n Debugger message: panicnMemory ID: 0x6nOS release type: UsernOS version: 22C5033enKernel version: Darwin Kernel Version 22.2.0: Sun Oct 16 18:09:52 PDT 2022; root:xnu-8792.60.32.0.1~11/RELEASE_ARM64_T6000nFileset Kernelcache UUID: D76
This might not be related to your post but I would like reply here for reference as well. I think iOS16.1 also blocks access to calendar database as well. My widget app displays info from calendar and it stops working correctly since iOS16.1. It happens when the widget try to refresh the timeline (thus need to access calendar database). If I refresh the widget from within my app, the widget can access calendar database correctly. I have also found a post on Reddit regarding this issue - https://www.reddit.com/r/iOSBeta/comments/xgship/ios_161_b1_3rd_party_calendar_widgets_not_working/ Hope Apple will fix this soon.
Topic:
Media Technologies
SubTopic:
General
Tags:
The documentation you link has the following in it: App Clips come with limitations that help protect user data. They can’t access: Data from apps like Calendar, Contacts, Files, Health, Messages, Reminders, and Photos As well as: However, the following frameworks provide no functionality at runtime: Assets Library ... PhotoKit Is there other documentation you're seeing that says App Clips support accessing or saving to the Photo Library?
Topic:
App & System Services
SubTopic:
General
Tags:
Since, I have upgraded last week, I am having this issue too with system panic: panic(cpu 0 caller 0xfffffff0207d7578): userspace watchdog timeout: no successful checkins from dfrd in 180 seconds service: dfrd, total successful checkins in 32150 seconds: 3189, last successful checkin: 180 seconds ago service: remoted, total successful checkins in 32143 seconds: 3213, last successful checkin: 0 seconds ago service: bridgeaudiod, total successful checkins in 32150 seconds: 3214, last successful checkin: 0 seconds ago service: logd, total successful checkins in 32150 seconds: 3213, last successful checkin: 0 seconds ago Debugger message: panic Memory ID: 0xff OS release type: User OS version: 20P411 macOS version: 22A380 Kernel version: Darwin Kernel Version 22.1.0: Sun Oct 9 19:46:56 PDT 2022; root:xnu-8792.41.9~1/RELEASE_ARM64_T8010 KernelCache UUID: B7EE8CD951B2BA089DFDEDE928F572B1 Kernel UUID: F0934039-FED3-3E70-8E87-BF08A56907C2 Boot session UUID: 8CE26245-E30B-4B35-834A-EFCA1DC35BA6 iBoot version: iBoot-84
Topic:
App & System Services
SubTopic:
Hardware
Tags:
Please fix this! I’m getting invite notifications for every single meeting on my shared google calendar. It did not use to behave like this in previous iOS versions!
Topic:
App & System Services
SubTopic:
General
Tags:
Same issue here. I have event notifications disabled for a calendar but am still getting invite alerts. Been fine for years until ISO16 update.
Topic:
App & System Services
SubTopic:
General
Tags:
Seeing the same thing when I dock/undock. The TouchBar often flashes/flickers before the crash happens if I'm working on the laptop after undocking. I send a report into Apple each time (example below). Happens 2 to 5 times in a row before stabilizing. The error message changes a little each time (example below - often has Sleep/Wake hang detected). Send into Apple every time. Dell thunderbolt dock and Sabren monitor adapter with 2 monitors running. OS 12.6 on a 2020 13-inch MacBook Pro with Intel i7. Is there a workaround for this? Are Apple developers monitoring this site and is there a fix coming at some stage? Are there any docks that work? Is it a dock issue or is it related to transferring from laptop monitor to external monitors? panic(cpu 1 caller 0xfffffff028ce6bac): Sleep/Wake hang detected @IOPMrootDomain.cpp:12600 Debugger message: panic Memory ID: 0x6 OS release type: User OS version: 19P6066 macOS version: 21G83 Kernel version: Darwin Kernel Version 21.6.0: Wed Aug 10 14:04:32 PDT 2022; root:xnu
Topic:
App & System Services
SubTopic:
Core OS
Tags:
Anyone experience this? I found out that calendar information on my widgets are displayed in both Today's widget view and in Lock Screen view even if .privacySensitive is set to true. Then I notice the Apple's calendar widgets also display the event title. Device: iPhone XR iOS16