Search results for

calendar

1,863 results found

Post

Replies

Boosts

Views

Activity

Reply to earliestBeginDate timezone
[quote='779047021, VasileGreabanu, /thread/779047, /profile/VasileGreabanu'] how is the value interpreted with respect to timezone ? [/quote] It is not. It’s of type Date, and Date represents a fixed point in time. Under the covers it’s actually on offset, in seconds, from the reference date (the beginning of 2001). If you want to specify specify a local time, create a DateComponents value and pass that into Calendar to get a Date. There is one gotcha though: If the device changes time zone after when your schedule your task, there’s no easy way for you to adjust for that. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Apr ’25
How to control when a DatePicker "pops up"
I have a Date field that holds the scheduled start date for an activity.. However, activities can be unscheduled (i.e., waiting to be scheduled at some other time). I want to use Date.distantFuture to indicate that the activity is unscheduled. Therefore I am looking to implement logic in my UI that looks something like @State private var showCalendar: Bool = false if date == .distantFuture { Button(unscheduled) { showCalendar.toggle() }.buttonStyle(.bordered) } else { DatePicker(section: $date) } .popover(isPresented: $showCalendar) { } But this approach requires that I access the DataPicker's Calendar view and I don't know how to do that (and I don't ever what my users to see Dec 31, 4000). Any ideas? (BTW, I have a UIKit Calendar control I could use, but I'd prefer to use the standard control if possible.)
4
0
120
Mar ’25
Reply to @Query with Set
@Query(filter: #Predicate { $0.dates = DateComponents(calendar: Calendar.current, year: 2025, month: 3, day: 4)}, Your code snippet shows that dates is a set, and so you'd want to check if the set contains (rather than is equal to) the DateComponents object, as shown below: @Query(filter: #Predicate { $0.dates.contains(DateComponents(calendar: Calendar.current, year: 2025, month: 3, day: 4) } Best, —— Ziqiao Chen  Worldwide Developer Relations.
Mar ’25
@Query with Set
How do I filter data using @Query with a Set of DateComponents? I successfully saved multiple dates using a MultiDatePicker in AddView.swift. In ListView.swift, I want to retrieve all records for the current or today’s date. There are hundreds of examples using @Query with strings and dates, but I haven’t found an example of @Query using a Set of DateComponents Nothing will compile and after hundreds and hundreds of attempts, my hair is turning gray. Please, please, please help me. For example, if the current date is Tuesday, March 4 205, then I want to retrieve both records. Since both records contain Tuesday, March 4, then retrieve both records. Sorting works fine because the order by clause uses period which is a Double. Unfortunately, my syntax is incorrect and I don’t know the correct predicate syntax for @Query and a Set of DateComponents. Class Planner.swift file import SwiftUI import SwiftData 
 @Model class Planner { //var id: UUID = UUID() var grade: Double = 4.0 var kumi: Double = 4.0 var period: D
1
0
108
Mar ’25
Secure Integration of Apple Calendar (iCalendar) in a Third-Party App
Hi everyone, We’re integrating Apple Calendar (iCalendar) into our Codapet app but haven’t found any official Apple APIs for event management and synchronisation. Currently, we use CalDAV with Apple ID authentication and an app-specific password (ASP), storing the ASP encrypted in our database and decrypting it for each API call. We’re looking for a more secure and recommended approach to this integration. Does Apple provide dedicated APIs for calendar sync, or is there a better alternative to avoid sending the ASP with every request? Any guidance or best practices would be greatly appreciated! Thanks!
0
0
143
Mar ’25
Reply to How long does it take to get approved for the App Store Small Business Program
How i got approved in 2025 for of all, i was completely unaware of the program because Appstore Connect does not advertise it like the generous Google Play Console I only discovered it while checking my revenue stats and realizing that Apple was taking too much commission. After a quick Google search, I found out about the program. Well, let bygones be bygones. Better late than never 😀 I applied on February 27, and upon submission, I received an application receipt email stating that Apple would notify me once my enrollment was approved. However, I received no further emails in February. The FAQ on the application page mentioned: When will my adjusted proceeds go into effect? Your proceeds will be adjusted fifteen (15) days after the end of the fiscal calendar month in which your enrollment is approved. For example, if your enrollment is approved on February 10, 2022, your proceeds are adjusted starting March 14, 2022. Based on this, I assumed that if I were approved in March, my reduced 15% commiss
Topic: Business & Education SubTopic: General Tags:
Mar ’25
Reply to Added lots of in-App functionality, but Apple says: G4.2.2 - Minimum Functionality
For more clarity, I add some screenshots: NATIVE welcome screen, using saved user name, showing tipp of the day. Link to detailed explanation of the tipp. Link to About (from here link to imprint). Link to Main Menu: NATIVE Main menu, SWIPED to LEFT page, link to learning planner, link to structure drawing game, link to lab calculators: NATIVE learning planner, above: choose start date to learn & select the time you have, middle: suggestion of learning plan, below integrate schedule in calendar app NATIVE structure drawing game, game board showing 25 tasks that can be selected NATIVE structure drawing game, one task selected, above: Draw lactate with draw board (actually showing the solution), middle: tipp how to draw the structure (is initially hidden and can be shown if desired), below: mark task as red/yellow/green NATIVE lab calculators with link to seven distinct calculators for different lab tasks NATIVE Main menu, SWIPED to RIGHT page, links to learn videos (above: will open as in-app over
Mar ’25
Added lots of in-App functionality, but Apple says: G4.2.2 - Minimum Functionality
Dear friends, I wouldn't be writing this article if I wasn't at a loss. I really don't understand the repeating reviewer’s decision: Guideline 4.2.2 - Design - Minimum Functionality We noticed that your app ‘ONLY’ includes links, images, or content aggregated from the Internet with limited or no native functionality. My App (NH2-STEFAN-COOH, Apple ID 6741710895) is a learning app for biochemistry students. In the first review, it was actually mainly a web viewer, so Apple was right at that time - it was my mistake, but I listened to them and made massive improvements adding lots of native stuff: When you start it for the first time, a welcome message appears, the user name is created and saved. A different biochemistry anecdote appears on the welcome page every day. This can be explained in detail. There are 31 different anecdotes and explanations, one for each day of the month. An ‘About’ section can also be clicked on the welcome page and from there the impression. If you click on ‘Entry to the world of bio
3
0
302
Mar ’25
HKAnchoredObjectQuery Stops Receiving Updates
I implemented this to receive updates for specific data types and keep the latest daily information up to date. However, for some reason, it only works for a while before stopping completely. Background Delivery internal func backgroundDeliveryForReadTypes(enable: Bool, types: Set) async { do { if enable { try await statusForAuthorizationRequest(toWrite: [], toRead: types) for type in types { try await healthStore.enableBackgroundDelivery(for: type, frequency: .daily) } } else { for type in types { try await healthStore.disableBackgroundDelivery(for: type) } } } catch { debugPrint(Error enabling background delivery: (error.localizedDescription)) } } HKQueryAnchor internal var walkingActivityQueryAnchor: HKQueryAnchor? { get { if let anchorData = UserDefaults.standard.data(forKey: walkingActivityAnchor) { return try? NSKeyedUnarchiver.unarchivedObject(ofClass: HKQueryAnchor.self, from: anchorData) } return nil } set { if let newAnchor = newValue { let anchorData = try? NSKeyedArchiver.archivedData(withRootObje
1
0
273
Mar ’25
Reply to Apple Calendar not working with RDATE in RFC 5545
Thanks for your reply, I think this should be a bug report. I'm currently working on a multi-platform calendar and planner sharing tool. As the calendar software on every Apple device does, people can sync their calendars using iCloud and use that to share their calendars with others in the form of public links. RFC 5545, also known as iCalendar, is the standard for exchanging information for these functions. Typically, a simple event implementation would look like this (according to 3.6.1. Event Component) BEGIN:VEVENT UID:some unique numbers SUMMARY:things to be happened DTSTART;TZID=Asia/Singapore:20240301T100000 DTEND;TZID=Asia/Singapore:20240301T120000 END:VEVENT The above describes a two-hour schedule. However, not everything is a one-time event, and sometimes the event may need to be repeated at regular intervals, so it is possible to repeat it at regular intervals according to the rules of 3.8.5.3 Recurrence Rule, and there are also EXRULE tags for excluding a date
Mar ’25
Reply to Apple Calendar not working with RDATE in RFC 5545
I'm not sure if this is a bug report or an enhancement request. Either way, I think it would be good for our engineering teams to investigate. Can you provide more details about what you're trying to do and what APIs you are using? Please file a bug report/enhancement request asking for RFC 5545 date format support. You can file an enhancement request using Feedback Assistant. Once you file the request, please post the FB number here. If you're not familiar with how to file enhancement requests, take a look at Bug Reporting: How and Why? If you are simply using the Calendar and not writing software, then won't you please consider posting this question in the Apple Support Community discussion forums. The Apple Developer Forums are for questions about APIs and features intended specifically for developers.
Mar ’25
UNNotificationRequest set timestamp to a relative time
The system calendar when showing a calendar event shows a relative timestamp on the notification versus all other apps which have a timestamp of when the notification was sent. Is there a way to set the timestamp to be relative? I am currently working on a calendar app and we should be able to use the same system that apple uses for its own calendar. Post about this on stack overflow from someone else a few years ago
1
0
310
Mar ’25
Finance Report API - no data
I'm querying the Finance Report api to get a January report for my app, yet no data is present. It's now March 3rd, and executing the following query results in a 404. url_financial = ( https://api.appstoreconnect.apple.com/v1/financeReports ?filter[regionCode]=ZZ &filter[reportDate]=2025-05 &filter[reportType]=FINANCE_DETAIL &filter[vendorNumber]=redacted ) If I change the report date to 2024-04, I get December, yet January is still unavailable. I understand that Apple's fiscal calendar does not follow the Gregorian calendar, however I'd expect that in March I could query the next period after December. Is this normal?
1
0
349
Mar ’25