Search results for

calendar

1,863 results found

Post

Replies

Boosts

Views

Activity

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
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
Bug or Feature: Changes to Window Reopen Behavior in macOS 26
Since macOS 26 Beta 1, I notice that the window reopening behavior had changed. Say there are two desktops (spaces), one might: open an app window in desktop 1 close that window switch to desktop 2 reopen the app window (by click on dock tile, spotlight search...) Prior to macOS 26, that window will always reopen in current desktop. This is IMO the right behavior because these windows are most likely transient (message app, chat app, utilities app or note app). In macOS 26, however, will switch to desktop 1 (where the window is closed) and reopen the window in desktop 1. This is weird to me because: Window is closed, hence it should not be attached to desktop 1 anymore, unlike minimize. Switching desktop interrupts user's current workflow. It's annoying to switch back specially when there're many desktops. This behavior is inconsistent. Some reopen in current desktop, some reopen in previous desktop. Apps like Music, Notes and Calendar reopened in previous desktop, while Mail, Messages, and Freeform
Topic: UI Frameworks SubTopic: AppKit Tags:
3
0
190
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
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
UICollectionView Drag to edge of screen is not working with Stage Manager
In our app we have a UICollectionView with Drag&Drop functionality enable and collection view is covering the entire screen. When we drag a collection view item to the edge of the screen it does not scroll the UICollectionView instead that our item turns into the app icon and scrolling blocked. It is happening only if Stage Manager is enabled in the device and if Stage Manager is disabled it is working fine. This issue we are facing after iOS 18.6 release, before 18.6 it was working fine i.e, collection view was scrolling to next items when we dragging an item to edge of the screen, similar to the iOS calendar app when we drag an event to edge it starts scrolling the date. And in iOS 26 if we drag an item to edge, Springboard is getting crashed.
1
0
166
Aug ’25
How to get view backgrounds for widget with clear or tinted rendering
The calendar widget and buttons shows a lightened / material background behind some content when the widget is in clear / tinted mode (example here: https://developer.apple.com/videos/play/wwdc2025/278?time=72). How can this be done? I tried applying a material and glass background to a view using the .background(...) modifier, but the background is made white. Text(Hello) .padding() .background { ContainerRelativeShape() .fill(.thinMaterial) } Text(Hello) .padding() .background { ContainerRelativeShape() .glassEffect() } Is this not supported, a bug, or am I doing something wrong?
1
0
141
Aug ’25
Reply to .disabled() doesn't VISUALLY disable buttons inside ToolbarItem on iOS 26 devices
Changing to .plain, does make make the .disabled() modifier work on an iOS 26 device (toolbar button visually becomes grayed out): But I’m trying to match the behavior of stock iOS 26 apps like Reminders and Calendar, where the checkmark/save button is disabled when there are no changes, then .borderedProminent when there are. What's the best way to do this? 👇 Reminders on iOS 26 Calendar on iOS 26
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Aug ’25
Multitasking & Gestures >> Seeing the app icon instead of contact info when drag-and-dropping contacts into my Calendar view in iOS 26.0 Beta?
Multitasking & Gestures >> Seeing the app icon instead of contact info when drag-and-dropping contacts into my Calendar view in iOS 26.0 Beta? In Settings Multitasking & Gestures >> Select Full-screen Apps then worked fine. But when Multitasking & Gestures >> select Windowed Apps then any suggestion how to handle on app development for one or two screen?
Topic: UI Frameworks SubTopic: General
2
0
106
Aug ’25
Dragging window on iPad from near the top
By default, a window on iPadOS 26 can be dragged by touching and dragging the top ~30 points of that window. If the window's root view controller is a UINavigationController with a navigation bar, the window can be dragged by touching and dragging anywhere in that navigation bar. In Apple Calendar, I can drag a window anywhere above the grid of weeks and days. I have an app with a custom navigation controller. My navigation controller is not a subclass of UINavigationController. How can I define what portion of the window should let the user drag that window across the screen on iPad?
Topic: UI Frameworks SubTopic: UIKit Tags:
2
0
130
Aug ’25
Reply to Mitigating overlapping text for sticky section headers for a plain List in iOS 26
Is there a modifier to make section headers non-sticky? You can use the automatic .listStyle(.automatic) or opt for a lazy stack instead and apply your decorators. For examples, refer to Grouping data with lazy stack views. .listStyle(.automatic) results in in .insetGrouped, so that's a different look. I tried the LazyVStack approach and this worked well for a screen that was pretty custom-styled anyway. Side note: LazyVStack made me a little upset by applying the spacing not only between rows, but also after the section header; requiring dancing around with the spacing and paddings to get the correct look; I wished for a separation of spacing between sections, spacing between rows and spacing between [section header/rows/section footer]. But I'm wondering if this is a well-rounded approach for Views that just want a plain styled data list. It's certainly more feasible with the delicate separators-going-all-the-way-through-to-the-edge-of-the-screen gone in iOS 26, but still, custom-rebuilding all the Views wi
Topic: UI Frameworks SubTopic: SwiftUI
Aug ’25
Weird DateFormatter behavior
I am seeing a weird behavior of the date formatter (Full code is below). When run, this will give the following output: 57: 1 month, 3 weeks, 5 days 58: 1 month, 3 weeks, 6 days 59: 2 months 60: 2 months, 1 day 61: 2 months 62: 2 months, 1 day 63: 2 months, 2 days So both 59 days and 61 days are 2 months, and both 60 and 62 days are 2 months and 1 day. This of course is especially weird because this means, 2 months also comes after 2 months and a day. Can someone explain to me what is going on here? import Foundation let formatter = DateComponentsFormatter() formatter.unitsStyle = .full let calendar = Calendar(identifier: .gregorian) let today = calendar.date(from: DateComponents(year: 2025, month: 7, day: 26))! for day in 57...63 { let startDate = calendar.date(byAdding: .day, value: -day, to: today)! let components = calendar.dateComponents([.day, .weekOfMonth, .month,. year], from: startDate, to: today) let result = formatter.string(from: components)! print ((String(format: %3d, day)): (r
4
0
291
Jul ’25