Search results for

calendar

1,863 results found

Post

Replies

Boosts

Views

Activity

Reply to How does SwiftData schema migration work and what are the possible schema changing operations
I just ran into a similar problem in my app. After hours of looking around, I couldn't find what I was looking for, but I found a solution that works... Hopefully there is a better solution though. Problem Schema v1 public enum SchemaV1: VersionedSchema { public static var versionIdentifier: Schema.Version = .init(1, 0, 0) public static var models: [any PersistentModel.Type] { [Reminder.self] } @Model public final class Reminder: Hashable, Identifiable { public var id: UUID public var title: String public var icon: ReminderIconStyle // This is an enum, that I want to convert to a struct, so I need to migrate to the new model. public var style: ReminderTimeStyle ... } } Schema v2 public enum SchemaV2: VersionedSchema { public static var versionIdentifier: Schema.Version = .init(2, 0, 0) public static var models: [any PersistentModel.Type] { [Reminder.self] } @Model public final class Reminder: Hashable, Identifiable { public var id: UUID public var title: String public var icon: ReminderIconStyle // New to V2
Jan ’24
icalendar on a web browser has issues with all-day long events
When creating an all-day event in the iCloud Calendar web interface, the displayed end date appears as the next day. This is confusing and misleading for users as it does not accurately represent the event's 24-hour duration. Impact: Users are unsure of the actual end time of the event, potentially causing schedule conflicts or missed reminders. The visual representation of the event is inaccurate and can be frustrating for users accustomed to standard time-based formats. Suggestion: Display the full duration of the all-day event explicitly (e.g., All-day, 24 hours) or adjust the end date representation to avoid confusion (e.g., Ends on the same day).
1
0
699
Jan ’24
Calendar authorizationStatus changed to Denied without user's interaction. Calendar Full Access Permission
I have experienced a strange issue on my iphone test device. (iPhone Xr running iOS 17.0.3) In my app I ask a user for calendar full access. Once I gave the access permission, the app works as expected. Then somehow the status changed from .fullAccess to .denied. This happens without my interaction in iPhone's Settings. I have doubled checked in Settings app and the permission is still granted. But somehow the status is denied when calling EKEventStore.authorizationStatus(for: .reminder) Regardless of how bad my code is, the app should not be able to change status from .fullAccess to .denied. Correct? I have never had this problem until lately. But it happens to both my iOS app and my mac Catalyst app. Which is really strange. (iOS 17.0.3 and Sonoma 14.0) This problem doesn't happen all the time though. Most of the time my app works fine. But it can happen few times per day. And even more strange, it tends to happen at the same time for iOS and macOS. I don't know if this problem happens to me becaus
2
0
2.2k
Jan ’24
Reply to AppStoreConnect API - How to set pricing
Ok, now it's getting ridiculous. If we check the existing AppStoreConnect Documentation that I've referenced many times already (here) the entire thing has been deprecated. BUT following the link to (Set a price) takes you to new information on setting a price that includes a link titled Learn how to set a price for your app with the App Store Connect API and that link takes you back to ... The first link that has everything deprecated and nothing about setting a price. 🤯 The UI for setting prices manually in the web interface has been updated and it is probably the worst it's ever been. It will show you scheduled prices changes but won't tell you what the price is for that change unless you click on it. The calendar is still stupid, meaning it doesn't default to the next available day after the last scheduled change so you can easily goof up your schedule if you have to set a bunch of changes. You can only schedule one change at a time. So if I want all of my Saturdays to be free I have to do that
Jan ’24
Reply to How to give an iOS App running in Mac(designed for iPad) mode access to the Mac Calendars ?
the app gets the .notDetermined authorizationStatus after a call to EKEventStore.authorizationStatus(for: .event). The .notDetermined status indicates that the app hasn't requested calendar access to the user on that platform or if the app did, the user hasn't made a decision yet. Your app should prompt the user for authorization as mentioned when the authorization status is notdetermined. No, it does not and I do not understand why because it does on both iPhone and iPad. What version of Xcode did you use to build and run your app? What version of macOS are you running your app on? From TN3152: Migrating to the latest Calendar access levels The iOS, macOS, and watchOS SDKs bundled in Xcode 15 deprecate the requestAccess(to:completion:) and requestAccess(to:) methods. If your app links against the iOS 17 SDK, macOS 14 SDK, or watchOS 10 SDK, calling these deprecated request methods doesn’t prompt the user for access and throws an error message. See TN3153: Adopting API changes for EventKit i
Topic: App & System Services SubTopic: General Tags:
Jan ’24
Reply to Getting 24 hour time from Date
OK, the date formatting APIs are not the right path forward for you because they are primarily focused on the presenting dates to the user. To work with dates and times, use the calendar and date component APIs. For example: import Foundation func main() { let c = Calendar(identifier: .gregorian) let d1 = Date(timeIntervalSinceReferenceDate: 3.0 * 60.0 * 60.0) print(c.component(.hour, from: d1)) // 3 let d2 = Date(timeIntervalSinceReferenceDate: 15.0 * 60.0 * 60.0) print(c.component(.hour, from: d2)) // 15 } main() Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Topic: App & System Services SubTopic: General Tags:
Jan ’24
Is there icloud API to get calendar events
Hello, We are developing an app that coordinate meetings that needs to sync icalendar events with our app. We used EventKit and it is working fine on an apple device, but we also need to sync the data from the server (NodeJs) to be able to sync events even when the user doesn't open our app. How can we do so ? I found that we can sync using icloud and using App-specific password https://support.apple.com/en-us/HT204397 Some apps made by developers other than Apple ask you to sign in with your Apple ID, so that the app can access information like mail, contacts, and calendars that you store in iCloud. but I can't find an official documentation for the API. Can you please provide me with the API documentation or help me with an alternative. Thanks
1
0
1.6k
Sep ’22
Can I Use Code From Stack Overflow?
Hello, I have been working on my submission for the Swift Student Challenge and have been searching for a solution for how to complete a trivial task related to dates and calendars in Swift. After searching, I found an answer on Stack Overflow that works perfectly for my project. Am I allowed to submit a playground that includes this code or do I need to rewrite or reinvent the code somehow? Thanks
1
0
513
Jan ’24
Xcode crashes the system when building iOS project
Greetings, Xcode crashes the system and forces macbook to reboot. Firstly, it shows pink rectangles in random places for 5 seconds and then reboots the computer. All I'm trying to do is to just build a simple iOS project in Xcode. This problem started out of nowhere. I tried updating the macbook's OS and Xcode to 15.1, but without luck. Could you please help? Here's the error after the reboot: Debugger message: panic Memory ID: 0x1 OS release type: User OS version: 23C71 Kernel version: Darwin Kernel Version 23.2.0: Wed Nov 15 21:53:18 PST 2023; root:xnu-10002.61.3~2/RELEASE_ARM64_T6000 Fileset Kernelcache UUID: 89516519121B13EC9D63007F55C1F1FD Kernel UUID: 3DE22D7D-A5F5-3B17-84BD-A58164C8B09B Boot session UUID: 70C4D273-3858-48D5-8585-A96A76406DD5 iBoot version: iBoot-10151.61.4 secure boot?: YES roots installed: 0 Paniclog version: 14 KernelCache slide: 0x000000000e964000 KernelCache base: 0xfffffe0015968000 Kernel slide: 0x000000000e96c000 Kernel text base: 0xfffffe0015970000 Kernel text exec slide: 0x0000
2
0
641
Dec ’23
Calendar nextDate/enumerateDates methods with backward direction does not work for September
I’m trying to get the previous date that matches the 9nth month in the Gregorian calendar (which is September) from Date.now (which is in December 2023 right now). The expected date is then in 2023. The first date returned is in 1995. Why? I filed the feedback FB13462533 var calendar: Calendar = Calendar(identifier: .gregorian) calendar.timeZone = TimeZone.autoupdatingCurrent let matchingDateComponents: DateComponents = DateComponents(month: 09) let date: Date? = calendar.nextDate( after: Date.now, matching: matchingDateComponents, matchingPolicy: .nextTime, direction: .backward ) print(date) // Optional(1995-08-31 23:00:00 +0000)
4
0
739
Dec ’23