Search results for

calendar

1,863 results found

Post

Replies

Boosts

Views

Activity

Reply to Kernel panic on Macbook Air
Same issue. The same problem. Sometimes at work, but more often while sleeping. panic(cpu 1 caller 0xfffffe001a88ac50): skr.txausd.upipe:533:IDSClientChannelNexusOS: skr 0x0xfffffe24eead1c00 sg 0x0xfffffe24e43edea8 (idx 0) unable to satisfy mandatory allocation Debugger message: panic Memory ID: 0x6 OS release type: User OS version: 23B81 Kernel version: Darwin Kernel Version 23.1.0: Mon Oct 9 21:28:12 PDT 2023; root:xnu-10002.41.9~6/RELEASE_ARM64_T8103 Fileset Kernelcache UUID: 7BF1E8441DE38056EC1FDED67A9F101B Kernel UUID: 24DA617C-1A30-3D13-A4BB-7BF37E60644E Boot session UUID: E59838AD-1CA8-488B-8E0A-392D8116B1BC iBoot version: iBoot-10151.41.12 secure boot?: YES roots installed: 0 Paniclog version: 14 KernelCache slide: 0x0000000011d58000 KernelCache base: 0xfffffe0018d5c000 Kernel slide: 0x0000000011d60000 Kernel text base: 0xfffffe0018d64000 Kernel text exec slide: 0x0000000013264000 Kernel text exec base: 0xfffffe001a268000 mach_absolute_time: 0x16ca94ed494 Epoch Time: sec usec Boot : 0x655864aa 0x000ee
Topic: App & System Services SubTopic: Hardware Tags:
Nov ’23
Reply to When SwiftUI View is Equatable - questions...
∙View can conform to Equatable... True, .equatable() is no longer required, not sure what version that changed in. . ∙When view contains @ObservedObject... False, regardless of the outcome of ==, body is always called when any @Published property of the object changes or objectWillChange is published. . ∙Does view, that is Equatable, need to care about equality of its subviews.. No, a subview will just follow the same algorithm. Best to only init a View with the data it actually needs and uses in its body to keep invalidation tight. . ∙When view returns true on equality check... True, if you returned true from == but had @Environment(.calendar) var calendar and the calendar changed the body would still be called. This is the same behaviour as @ObservedObject in the 2nd question. . ∙When the observed object conforms to Equatable... In my testing the if an ObservedObject conformed to Equatable the == func was never called. My test code: import SwiftUI import Combine struct ViewTest {
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Nov ’23
Reply to Is it possible for EventKit Framework to trigger the Permission Alert of the Contacts?
From Protect user privacy with information property list keys: To access a person’s calendar events or reminders through EventKit or EventKit UI, your app needs to include descriptions for the following if your app links to iOS 10 or later, and runs on iOS 10 through iOS 16: NSContactsUsageDescription, as EventKit UI may need to access Contacts data to choose the correct display name or avatar for a contact in a calendar. Warning If your app that’s linked on iOS 10 through iOS 16 doesn’t include these keys, your app crashes.
Topic: App & System Services SubTopic: General Tags:
Nov ’23
Please help with: Trailing closure passed to parameter of type 'EKEvent?' that does not accept a closure
I use this function to read calendar headers in a array of strings: `func getCalendarHeaders(ofType: EKEntityType, alerter: Alerter) async -> [String] { var headers: [String] = [] do { if try await requestAuthorizationFor(ofType) { let calendars = try await fetchCalendars(ofType: ofType) for calendar in calendars { headers.append(calendar.title) } } } catch let error { DispatchQueue.main.async { alerter.alert = ErrorManager.shared.showAlert(error: error) } } return headers } In my view model / or view I try to init with: Task { self.eventCalendarHeaders = await CalendarManager.shared.getCalendarHeaders(ofType: EKEntityType.event, alerter: alerter) } Why I get this error? Trailing closure passed to parameter of type 'EKEvent?' that does not accept a closure
1
0
636
Nov ’23
iPadOS 17.1 SwiftUI DatePicker with onTapGesture
We have met a problem with iPadOS 17.1. We have a normal date picker to choose the date, but in the meantime, we added an onTapGesture to it and did something. With the previous version 17.0, when we click the date picker, the calendar view is popup and lets us choose the date. But when we updated to 17.1, the calendar is not shown as a normal click, only a long press gesture will trigger it. Can someone help to take a look at it?
11
0
4.0k
Oct ’23
Reply to EKSource calendarsForEntityType returns nil despite valid calendars
I found the apparent cause, by creating a new project containing the simplest possible code to try to replicate this issue, and gradually making changes to replicate specifics of the code usage in my app. It seems that creating and using a second instance of EKEventStore was the cause of the issue. In previous macOS versions this did not cause any problem, and appeared to be valid usage. However, I have apparently been able to resolve the current problem by ensuring that I create and use only a single instance of EKEventStore in my app. Although the second instance I was creating on the fly does contain all the same EKSource entities, and used to return the same calendars in a call to calendarsForEntityType, it now it does not return any calendars at all in a call to calendarsForEntityType. I would suggest that this is a bug. Perhaps EKEventStore should in future be given a shared singleton property in the API.
Topic: App & System Services SubTopic: General Tags:
Oct ’23
EKSource calendarsForEntityType returns nil despite valid calendars
Since updating to Sonoma and using XCode 15.0.1 to adapt my app's code base to deal with new requirement for Full Access to calendars, I am simply unable to find ANY valid calendars of type EKEntityTypeEvent despite having about 8 different EKSources available (which I can see and access in the macOS Calendar app), and which do contain calendars I used to be able to read/write to before I updated to Catalina. But the call to EKSource's calendarsForEntityType function always returns nil. I have successfully obtained Full Access permission (which in any case is obviously so because otherwise I would not get access to all the EKSource items). I've also rebooted several times. I have Calendar selected under Resource Access items for the app's capabilities. Does anyone have any idea why, or a workaround? Looks like a potentially serious bug at this point.
1
0
799
Oct ’23
DeviceActivityMonitor extension not running on device?
Hello friends, I am working on an iOS app that uses the ScreenTime API to monitor app usage on the user's device. I am able to set up the monitoring schedule and start monitoring using code like this in the application: var calendar = Calendar.current let startDateComps = calendar.dateComponents([.year, .month, .day, .hour, .minute], from: startDate) let endDateComps = calendar.dateComponents([.year, .month, .day, .hour, .minute], from: endDate) let schedule = DeviceActivitySchedule(intervalStart: startDateComps, intervalEnd: endDateComps, repeats: false) let sessionName = DeviceActivityName(String(session.id)) do { try self.center.startMonitoring(sessionName, during: schedule) } catch { print(Could not start monitoring session (sessionName): (error)) } This appears to work. But in the DeviceActivityMonitor extension that I've added to the project, I never seem to get the init or intervalDidStart calls, and when I specify the DeviceActivityMonitor extension's scheme and try to debug it, XCode never s
3
0
1.1k
Oct ’23
APP Settings/ Permissions to run scripts
I'm currently developing an app on Xcode 15 for macOS 14+ (Swift) The app allows me to launch custom commands, using a simple UI to run them as opposed to having to open the Terminal app. I have successfully been able to use the app to run some simple commands such as: open https://google.com open -a Safari && open -a Mail && open -a Calendar say hi shortcuts run “Lights Camera Action” Unfortunately, if I try to open/run a shell script, I get an error in the Xcode console and the command fails to run. For example: If I create this simple shell script: #!/bin/bash osascript <
1
0
991
Oct ’23
Reply to My account got terminated 3.2(f), Help!
You are not alone about this : Hello, Upon further review of the activity associated with your Apple Developer Program membership, we have determined that your membership, or a membership associated with your account, has been used for dishonest or fraudulent activity. Therefore, your Apple Developer Program account has been flagged for removal. Specifically, we found that your account is associated with terminated developer accounts, or accounts pending termination, in direct violation of section 3.2(f) of the Apple Developer Program License Agreement, which states: “You will not, directly or indirectly, commit any act intended to interfere with any of the Apple Software or Services, the intent of this Agreement, or Apple’s business practices including, but not limited to, taking actions that may hinder the performance or intended use of the App Store, Custom App Distribution, TestFlight, Xcode Cloud, Ad Hoc distribution, or the Program (e.g., submitting fraudulent reviews of Your own Application or any thir
Oct ’23