Search results for

SwiftUI List performance

50,616 results found

Post

Replies

Boosts

Views

Activity

Reply to DesktopServicesHelper appears to delete or unlink the source file before the ESF auth event deadline is reached, rather than waiting for the full deadline window.
Hi Kevin, Thanks for your response. We understand that Endpoint Security authorization deadlines represent upper bounds and that ES clients are expected to respond as quickly as possible. We are not suggesting that Finder or DesktopServicesHelper bypasses kauth or Endpoint Security authorization. We attempt to perform file inspection as early as possible for files leaving the user’s machine; however, in real-world scenarios, inspection time can occasionally exceed a few seconds. Our concern is with the observed behavior where DesktopServicesHelper appears to proceed with unlinking the source file before the ES authorization event associated with the operation has received a response.
Topic: App & System Services SubTopic: Core OS Tags:
Jan ’26
Reply to After unholding CallKit, the audio does not restore.
@DTS Engineer But AVAudioSessionInterruptionTypeEnded does not get posted when the incoming cellular call is terminated from the Caller side. I think AVAudioSessionInterruptionTypeEnded only gets posted when there is an incoming call and user choose to not to receive the call. Even in Speakerbox, same issue is happening. Please refer https://developer.apple.com/forums/thread/762059 . And also why should the app need to activate the audio session separately. I think it should be done by iOS Callkit itself once we perform CXSetHeldAction with false right?
Topic: App & System Services SubTopic: General Tags:
Jan ’26
Threading issues when using debugger
Hi, I am modifying the sample camera app that is here: https://developer.apple.com/tutorials/sample-apps/capturingphotos-camerapreview ... In the processPreviewImages, I am using the Vision APIs to generate a segmentation mask for a person/object, then compositing that person onto a different background (with some other filtering). The filtering and compositing is done via CoreImage. At the end, I convert the CIImage to a CGImage then to a SwiftUI Image. When I run it on my iPhone, it works fine, and has not crashed. When I run it on the iPhone with the debugger, it crashes within a few seconds with: EXC_BAD_ACCESS in libRPAC.dylib`std::__1::__hash_table, std::__1::__unordered_map_hasher, std::__1::hash, std::__1::equal_to, true>, std::__1::__unordered_map_equal, std::__1::equal_to, std::__1::hash, true>, std::__1::allocator>>::__emplace_unique_key_args, std::__1::tuple<>>: It had previously been working fine with the debugger, so I'm not sure what has changed. Is there a differe
1
0
359
Jan ’26
iOS 26 didRegisterForRemoteNotificationsWithDeviceToken is not being called
We have an app in Swift that uses push notifications. It has a deployment target of iOS 15.0 I originally audited our app for iOS 26 by building it with Xcode 26 beta 3. At that point, all was well. Our implementation of application:didRegisterForRemoteNotificationsWithDeviceToken was called. But when rebuilding the app with beta 4, 5 and now 6, that function is no longer being called. I created a simple test case by creating a default iOS app project, then performing these additional steps: Set bundle ID to our app's ID Add the Push Notifications capability Add in application:didRegisterForRemoteNotificationsWithDeviceToken: with a print(HERE) just to set a breakpoint. Added the following code inside application:didFinishLaunchingWithOptions: along with setting a breakpoint on the registerForRemoteNotifications line: UNUserNotificationCenter.current().requestAuthorization(options: [.badge, .alert, .sound]) { granted, _ in DispatchQueue.main.async { UIApplication.shared.registerForRemoteNotifications
8
0
1.3k
Jan ’26
The State of Mac Catalyst in 2026
I’m exploring macOS development, comparing Mac Catalyst apps vs native AppKit/SwiftUI apps. What are the main limitations of Catalyst today? In what scenarios is a native AppKit or SwiftUI app unavoidable? Any insights are much appreciated — I’m trying to understand when Catalyst is sufficient and when going native is worth the extra effort.
3
0
369
Jan ’26
Reply to The State of Mac Catalyst in 2026
I am not an Apple employee, but there's a good chance most of the Apple apps you mentioned use Mac Catalyst because they were originally written for iOS with UIKit. Porting a UIKit app using Mac Catalyst is going to be faster than writing a Mac version from scratch. I don't see the advantage of using Mac Catalyst for a new SwiftUI app project. SwiftUI supports both iOS and Mac so you can share a lot of the same code and provide a native Mac experience. If you don't want to provide a native Mac experience, you can avoid Mac Catalyst, make an iOS app, and let people with Apple Silicon Macs run the iPad version. I have never used Mac Catalyst so I can't tell you how mature it is.
Topic: UI Frameworks SubTopic: General Tags:
Jan ’26
Reply to The State of Mac Catalyst in 2026
According to Apple's Mac Catalyst documentation, the purpose of Mac Catalyst is to create a Mac version of an iPad app. Do you have an existing iPad app that you want to port to Mac? If the answer is Yes, using Mac Catalyst will make porting easier than creating a Mac version with AppKit or SwiftUI. However, Apple Silicon Macs can run iPad apps so you can get a Mac version of the app without using Mac Catalyst. If the answer to last paragraph's question is No, you are better off creating a multi-platform SwiftUI app project to make an app that runs on iOS and Mac.
Topic: UI Frameworks SubTopic: General Tags:
Jan ’26
How to distinguish which operations in the file provider are during offline period
Currently tested, if the file provider goes offline (referring to calling disconnect) and deletes a file, the system will automatically trigger the deleteItems event after reconnecting (note that only after calling reconnect again will the current deleteItems logic be reached). However, for offline deletion, I would like to pass it directly without operating on the cloud. Can mounting disks determine which operations were performed offline during reboot
2
0
142
Jan ’26
Reply to DesktopServicesHelper appears to delete or unlink the source file before the ESF auth event deadline is reached, rather than waiting for the full deadline window.
On macOS Tahoe, our application using the Endpoint Security Framework (ESF) observes that during file copies through Finder application, DesktopServicesHelper unlinks the source file if the ESF authorization response is delayed for ~5 seconds, even though the authorization event deadline remains 15 seconds, indicating that the process does not wait for the full ESF deadline before deleting the file. First, I want to start with a general clarification on this point: if the ESF authorization response is delayed for ~5 seconds, even though the authorization event deadline remains 15 seconds, indicating that the process does not wait for the full ESF deadline before deleting the file. In general, the EndpointSecurity system is implemented as a user space communication component built on top of kauth in the kernel. As such, the calling process has NO ability to bypass or circumvent ANY given check. The only reason any given check is passed is because kauth/EndpointSecurity allowed it to pass. Next, a note on this
Topic: App & System Services SubTopic: Core OS Tags:
Jan ’26
Apple CDN connection error after changing server ip version to v6
The universal links for my apps stopped working. The server where the AASA files where hosted worked on IPV4 exclusively, a few days ago i changed the configuration to IPV6 only. I´ve created new IPV6 entries, renewed all certifactes and deleted all IPV4 entries for the domains. All seemed fine, but at Saturday I realized that my universal links stopped working for new user. What i´ve done to find the issue: Example domain that was used for debugging: https://developffw.burns.fun I´ve verified the AASA file is hosted properly by using different browsers and Postman to retrieve it. The file can be accessed and the certificates look fine. Output of curl -v https://developffw.burns.fun/.well-known/apple-app-site-association * Host developffw.burns.fun:443 was resolved. * IPv6: 2a01:4f8:13b:340a::2 * IPv4: (none) * Trying [2a01:4f8:13b:340a::2]:443... * schannel: disabled automatic use of client certificate * ALPN: curl offers http/1.1 * ALPN: server accepted http/1.1 * Established connection to developffw.burns.
5
0
169
Jan ’26
Reply to Zsh kills Python process with plenty of available VM
Thank you for sharing. The following is an AI-generated overview, but if it is correct, it seems that the only thing that vm_compression_limit would change is the compression of physical memory, not virtual memory. That AI description is a mixed bag of semi-nonsense. As a general warning, this is not an area where I'd trust AI to produce a reliable answer. The AI system is generating its answer by making up an answer based on scraping the internet, but the problem is that this doesn't really work when very little conversation/information has been published. Amusingly, if you tell the AI system it's wrong, it will helpfully accept your feedback and start making up new nonsense that's closer to the truth. In terms of the specific description, there are a few different issues: The percentage description is simply wrong. It's true that the default value is based on a percentage of RAM, but the whole point of the boot-arg is to override the default by providing a fixed value. The description of how compressed memo
Jan ’26
Reply to iOS 26: Unable to Transition from CallKit Screen to App when remoteHandle is nil or empty string
Are you asking if there's a reason we're not setting Unknown Caller in update.localizedCallerName? No. I was actually asking why you weren't using a CXHandle with a type set to generic and a string value to set to Unknown Caller (or whatever you wanted). So, let me actually step back for a moment and clarify the general roles these two different properties have: CXHandle -> This is intended to be the unique identifier for a particular call source. Phone calls use phone numbers, while other systems might use email addresses or string values (like user names). CXCallUpdate.localizedCallerName -> The name you actually want to show the user. Note that the mapping between these two values is definitely not one-to-one. For example: The same person can have multiple handles associated with it (for example, because a user has multiple account/phone numbers). Totally unrelated CXHandles may have the same localizedCallerName, either because of simple name overlap (there's more than one Kevin Elliott in the world)
Topic: App & System Services SubTopic: General Tags:
Jan ’26
Background App Refresh
Hi, I have a couple questions about background app refresh. First, is the function RefreshAppContentsOperation() where to implement code that needs to be run in the background? Second, despite importing BackgroundTasks, I am getting the error cannot find operationQueue in scope. What can I do to resolve that? Thank you. func scheduleAppRefresh() { let request = BGAppRefreshTaskRequest(identifier: peaceofmindmentalhealth.RoutineRefresh) // Fetch no earlier than 15 minutes from now. request.earliestBeginDate = Date(timeIntervalSinceNow: 15 * 60) do { try BGTaskScheduler.shared.submit(request) } catch { print(Could not schedule app refresh: (error)) } } func handleAppRefresh(task: BGAppRefreshTask) { // Schedule a new refresh task. scheduleAppRefresh() // Create an operation that performs the main part of the background task. let operation = RefreshAppContentsOperation() // Provide the background task with an expiration handler that cancels the operation. task.expirationHandler = { operation.cancel() }
27
0
767
Jan ’26
Add 'PDF Services' symlink in ~/Library directory in SwiftUI macOS Catalyst application
I am trying to port my sandboxed macOS app completely over to iOS using a Catalyst target. In my macOS app, I use 'SwiftySandboxFileAccess' package to add a symlink to '~/Library/PDF Services' so that the 'share to my app' menuItem shows up in the macOS Print Panel (in the PDF menu). It is critical for the function of my app to have this work on macOS. In the Catalyst target, I am having problems gaining access to '~/Library'. I have tried having the user select the folder, but the picker always returns 'canceled'. I have a test app that illustrates this. The test app tries to coax the user into selecting the library folder and then it is supposed to bookmark the location, but I am unable to get this far. As an aside, macOS should probably automatically add an entry to the Print Panel when the app includes PDF as a document type in XCode; it would save a lot of hassle and avoid having to go outside of the sandbox. However, I cannot wait for that. Hopefully someone can help. Download Test App from iCloud (If y
3
0
129
Jan ’26