Search results for

calendar

1,863 results found

Post

Replies

Boosts

Views

Activity

Drag & Drop with view hierarchy
Hi! I wrote a SwiftUI based app which does use a layout similar to a calendar. A week view with 5 day-views. Each day view may contain several record views. I've implemented a drag for the records which works well inside a day view (up and down) but I can't get it working between the days. Here is an example how it looks: Any idea or example how to get the proper coordinate information related to the week view inside the rectangle view? A GeometryReader inside the Rectangle view does not give me the needed information. I have currently no idea how to implement it properly…
Topic: UI Frameworks SubTopic: SwiftUI
1
0
76
Oct ’25
Reply to Profile doesn't include the com.apple.application-identifier entitlement.
I experienced this problem in XCode 26.0.1. My app has a single target configured with iOS and macOS destinations. For macOS, my app requires the sandbox entitlement for calendar data access. I fixed the error by: Removing the com.apple.application-identifier, com.apple.security.app-sandbox, and com.apple.security.personal-information.calendars entries from the app's AppName.entitlements file. Adding the sandbox and calendar entitlements back by adding the corresponding capabilities in the app target Signing & Capabilities settings. Toggling off and back on Automatically manage signing. I believe this worked because sandbox capability entitlements are only injected for macOS, while entitlement file entitlements were injected for all destinations. Hopefully this helps others with similar dual-destination setups.
Oct ’25
Pending Termination Notice
Hello Everyone! I recently got a termination notice. I've already sent an appeal 20 days back, I did get the response saying they'll not change the decision which is really a big problem! I've been developing apps and have been supporting my family for quite some time. But because of a small-mistake, I lost my entire account (Although I've made changes and re-submitted, but the app which got the removal isn't going for review) Anyone can you please help? I never got any kind of warning from Apple and I understood that since I'm using a commercial API, I could use it in my title, but it triggered removal of my entire account. Here's the notice I got: Upon further review of the activity associated with your Apple Developer Program membership, it's been determined that your membership has been used for dishonest or fraudulent activity, in violation of the Apple Developer Program License Agreement and the Developer Code of Conduct (App Review Guideline 5.6). Given the severity of the identified issues, your accou
1
0
185
Oct ’25
遇到账号待封禁通知,我该怎么办?求助
Pending Termination Notice Upon further review of the activity associated with your Apple Developer Program membership, it's been determined that your membership, or a membership associated with your account, has been used for dishonest or fraudulent activity, in violation of the Apple Developer Program License Agreement. Given the severity of the identified issues, all apps associated with your Apple Developer Program account have been removed from the App Store and your account has been flagged for removal. Because your account has been flagged for removal, any earnings payments are paused and app transfers are disabled. Creating new accounts after receiving this message may result in the termination of the new or associated accounts. Evidence of Dishonest or Fraudulent Activity App submissions from your account have engaged in concept or feature switch schemes to evade the review process, such as dynamically populating different app content after review, submitting apps with hidden features, repeatedly sub
0
0
241
Oct ’25
Reply to Calendar's date func is not behaving as I'd expect...
Thanks @Claude31 for pointing me to a couple of helpful sources. I definitely understand that changing weekday will have unpredictable results for day, month, year. but I'm still not sure I understand why hour, minute need to get clobbered. Having said that, thanks to your links I've changed my approach and am using Calendar's nextDate func mutating func update(updatedWeekday: Int? = nil, updatedHour: Int? = nil, updatedMinute: Int? = nil) { var components = DateComponents() components.weekday = updatedWeekday == nil ? weekday : updatedWeekday components.hour = updatedHour == nil ? hour : updatedHour components.minute = updatedMinute == nil ? minute : updatedMinute let nextDate = Self.calendar.nextDate(after: underlyingDate, matching: components, matchingPolicy: .nextTime, direction: .forward) if let nextDate = nextDate { underlyingDate = nextDate } }
Topic: App & System Services SubTopic: General Tags:
Oct ’25
Calendar's date func is not behaving as I'd expect...
When I run this in a playground: var meDate = Calendar.current.date(from: DateComponents(year: 2024, hour: 7, weekday: 3, weekdayOrdinal: 2))! print(meDate) I see: 2024-01-09 15:00:00 +0000 This seems correct to me. jan 9th is the second Tuesday in 2024 I'm in the pacific TZ, 07:00 PDT matches 15:00GMT But then I do this: meDate = Calendar.current.date(bySetting: .weekday, value: 4, of: meDate)! print(meDate) and I see: 2024-01-10 08:00:00 +0000 I would have expected my hour value (7PST/15GMT) to have been preserved. Is there a way I can update weekday, but not lose my hour?
2
0
365
Oct ’25
Reply to I Need some clarifications about FoundationModels
Happy to help answer some of these! Yes. The Foundation Models framework uses the on-device system foundation model. It's an ~3 billion parameter model designed and trained by Apple. Is the language model provided by FoundationModels designed and trained by Apple? Or is it based on an open‑source model? The exact same on-device model is available on iOS, iPadOS, macOS, and VisionOS on all devices that support Apple Intelligence. Is this on‑device model available on iOS (and iPadOS), or is it limited to macOS? No. The general on-device model you access via Foundation Models is not a coding model and isn't suitable for most code tasks. Xcode on Mac has a separate built-in coding model to help with code completion. When I write code in Xcode, is code completion powered by this same local model? If so, why isn’t the same model available in the left‑hand chat sidebar in Xcode (so that I can use it there instead of relying on ChatGPT)? Yes and no. You can give the on-device model access to that kind of information
Sep ’25
Reply to Alarmkit
func createFixAlarm(_ ck: CKRecord, _ cdate: Date, _ block: ((Bool, String?)->Void)? = nil) async { if cdate <= Date() { JCTips.showTip(闹钟时间不可小于当前时间!) block?(false, nil) return } let keynoteDateComponents = DateComponents( calendar: .current, year: cdate.year, month: cdate.month, day: cdate.day, hour: cdate.getOnComponent(.hour), minute: cdate.getOnComponent(.minute)) let date = Calendar.current.date(from: keynoteDateComponents)! typealias AlarmConfiguration = AlarmManager.AlarmConfiguration let stopButton = AlarmButton( text: 我知道了, textColor: .white, systemImageName: stop.circle) let alertPresentation = AlarmPresentation.Alert( title: LocalizedStringResource(stringLiteral: ck[RecordData.title.rawValue] as? String ?? 快开始了!), stopButton: stopButton, ) let attributes = AlarmAttributes( presentation: AlarmPresentation( alert: alertPresentation), metadata: JCMeta(), tintColor: Color.accent) let su = ck[RecordData.sound.rawValue] as? String let alarmConfiguration = AlarmConfiguration( schedule:.fixe
Sep ’25
Bug in Preview App Calendar View
Hi, I found a Bug in new Preview App on MacOS 26 release, while adding a new calendar entry. If I click on a date inside a PDF file in Preview App, the calendar view pops and prompts to add a new calendar event. The background, which I guess should show the calendar, is showing a yellow screen. See images below. This happens on both my M1 Air and M4 Pro Macbook. Kind regards, Lorenz
0
0
118
Sep ’25
WindowServer crash when moving window near left edge of external display
Steps to Reproduce: Connect a MacBook Pro (lid closed) to a large external monitor. Run the SDL3 testwm test application. git clone https://github.com/libsdl-org/SDL.git cmake -S . -B build -DBUILD_SHARED_LIBS=OFF -DSDL_TESTS=ON cmake --build build The testwm binary will be located in the build/test directory. Move the application window around the left edge of the external display. Observed Result: WindowServer crashes. System Configuration: MacBook Pro M3 Max, macOS Sequoia 15.6.1 LG GX9, 5120x2160 resolution, running at 165 Hz refresh rate Lid closed, single external display Panic Log: panic(cpu 7 caller 0xfffffe0027f61d5c): mismatched swapID's 6386399 vs 6386400n @UnifiedPipeline.cpp:14570 Debugger message: panic Memory ID: 0xff OS release type: User OS version: 24G90 Kernel version: Darwin Kernel Version 24.6.0: Mon Jul 14 11:30:55 PDT 2025; root:xnu-11417.140.69~1/RELEASE_ARM64_T6031 Fileset Kernelcache UUID: 8AA69CD2038CD2BAE2ED364428F4DBEA Kernel UUID: 75A21406-D046-3232-AA3F-085335D5C848 Boot session
1
0
119
Sep ’25
Discrepancy between App Store Server API `expiresDate` and iOS Settings subscription expiration date
I am developing an iOS app that uses App Store Server API (v2) for auto-renewable subscriptions. I noticed a discrepancy between the expiration date returned by the API and the date displayed in iPhone Settings > Subscriptions: App Store Server API expiresDate: 2025-09-12T12:10:25 (KST) iOS Settings > Subscriptions: 2025-09-11 (one day earlier) My understanding: The API’s expiresDate is the precise UTC timestamp. The Settings UI might display the last full calendar day for UX purposes. Questions: Is this behavior (UI showing one day earlier) an intentional Apple policy? If so, is there any official documentation or guideline explaining this behavior? Should developers always rely on the API’s expiresDate for subscription state management? This discrepancy is confusing for both developers and end users, so any clarification or official reference would be greatly appreciated.
0
0
104
Sep ’25
Why does SwiftUI Text(date, style: .relative) show the same duration for different dates?
I’m using SwiftUI’s Text(_:style:) with the .relative style to show how long ago a date occurred. According to the docs: A style displaying a date as relative to now. I expected it to show the precise difference between a past date and the current date. However, I noticed that two dates that are 3 days apart both display the same relative string under certain conditions. Code snippet to reproduce- (using GMT time zone and the system calendar) IMPORTANT: To reproduce this, set your Mac’s system clock to 8 September 2025, 3:00 AM. SwiftUI’s relative style uses the current system time as its reference point, so changing the clock is necessary to see the behavior. Settings Mac is set to Central European Time zone (but this behaviour was also reproduced by one of my app's users in the US.) Mac OS Sequoia 15.5 XCode 16.4 tested on an iOS Simulator and a real iPhone both running iOS 18.5 struct TestDateView: View { var body: some View { // 8. July 10AM to 8. September 3AM = Shows 2 months 2 days let startDa
0
0
99
Sep ’25
Submission Rejected-5.1.1
Our app's core product is deep level aggregation of events that are otherwise available online through various websites, forums and FB pages. In short, the convenience of a centralized app to find this data IS the core value/utility of the app and is what we want behind the paywall. There are other features regarding calendar, favorites, maps etc. to improve UX however, this is not the subscription motivation in our eyes. How do we overcome the 5.1.1 rejection? See below... App Review Hello, Thank you for your response. Regarding 5.1.1, the app still requires users to register or log in to access features that are not account based. Specifically, the app requires users to register before browsing events. Apps may not require users to enter personal information to function, except when directly relevant to the core functionality of the app or required by law. To resolve this issue, revise the app to let users freely access the app's features that are not account based. The app may still require regist
0
0
313
Sep ’25