Search results for

SwiftUI List performance

50,609 results found

Post

Replies

Boosts

Views

Activity

Reply to CXCallUpdate not working for outgoing calls
I try to update remoteHandle using CXCallUpdate for outgoing calls, but this works only on iOS 15 but not on 17 or 18 (16 didn't test). What's actually not working here? Are you looking at what the lock screen UI shows or what you see in other locations (particularly in the Recent call list)? There is a longstanding issue (r.126348631) where call updates aren't being displayed on the lock screen interface; however, this is purely about UI showing old data, not about the update itself completely failing. Notably: I use this handle value to implement recall by tapping on a call in the Recents tab of the system address book. But since my calls can transform from p2p to group calls, I need to update the handle value or find some other way to pass call identification info. ...I'd expect this sort of thing to work exactly the way you need/expect, regardless of what the lock screen UI shows. __ Kevin Elliott DTS Engineer, CoreOS/Hardware
Topic: App & System Services SubTopic: General Tags:
Jan ’26
SwiftData @Model: Optional to-many relationship is never nil at runtime
Hi all, I’m trying to understand SwiftData’s runtime semantics around optional to-many relationships, especially in the context of CloudKit-backed models. I ran into behavior that surprised me, and I’d like to confirm whether this is intended design or a potential issue / undocumented behavior. Minimal example import SwiftUI import SwiftData @Model class Node { var children: [Node]? = nil var parent: Node? = nil init(children: [Node]? = nil, parent: Node? = nil) { self.children = children self.parent = parent print(self.children == nil) } } struct ContentView: View { var body: some View { Button(Create) { _ = Node(children: nil) } } } Observed behavior If @Model is not used, children == nil prints true as expected. If @Model is used, children == nil prints false. Inspecting the macro expansion, it appears SwiftData initializes relationship storage using backing data placeholders and normalizes to-many relationships into empty collections at runtime, even when declared as optional. CloudKit context Fr
1
0
294
Jan ’26
Enabling FileProvider Extensions
We're updating a FileProvider-based app which was written for Big Sur to recent macOS. The system requires that the extension be manually enabled by the user in System Preferences -- either under Extensions > Added Extensions, Privacy & Security > Extensions > Added Extensions, or in newer versions General > Login Items & Extensions. Is there a programmatic (preferably Swift) or installer-based way to enable this checkbox-- or at least to detect if it has been enabled for a particular app, and if not bring up the appropriate pane of Preferences? (For which I'd need a complete OS-version-specific list of which pane to bring up.) (I can detect whether our particular NSFileProviderDomain has its userEnabled flag set after it's defined during the mounting process, but I'd rather be able to detect / set it during initial setup.)
1
0
212
Jan ’26
Reply to Component package and notarization of helper executables
In general, the notary service should include all Mach-O images in your submission in the ticket that it issues. Thus, you shouldn’t have to notarise helper independently, or Application Bundle.app for that matter [1]. However, I recommend that you check this, just to be sure. To do that: Submit your package for notarisation. On successful notarisation, fetch the notary log. See if it lists the cdhash values for helper. IMPORTANT If your helper has multiple architectures, check that both cdhash values are present. For more on cdhash values, see TN3126 Inside Code Signing: Hashes. For more background on how this stuff works, see Notarisation Fundamentals. For links to lots of other notarisation info, see Notarisation Resources. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com [1] Although it’s fine to do that if, for example, you also distribute the app via some other channel that doesn’t involve this installer package.
Topic: Code Signing SubTopic: Notarization Tags:
Jan ’26
Reply to Error while AppStore Connect Upload
So one of the following must be true: You want to use the Background Tasks framework to run long-running tasks via BGProcessingTask. Or you don’t. If you do, add the BGTaskSchedulerPermittedIdentifiers property to your Info.plist and populate it with the list of background task identifiers you use. If you don’t: Remove the processing value from the UIBackgroundModes property in your Info.plist. Remove any code that uses BGProcessingTask. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Jan ’26
Guideline 5.2.5 - Legal - Intellectual Property
Your app still contains features that mimic the iOS interface or behavior. I have a simple app that uses a NavigationSplitView 3 panels I have a section for Filters and User created Categories in Panel 1 A list of Requests from the selected Filters/Categories in Panel 2 and details of a request in Panel 3 It's designed to be simple and easy to use. How can it NOT mimic the iOS interface if I am using their own APIs? What should I do to get around this
Topic: Design SubTopic: General
3
0
1.9k
Jan ’26
Tahoe sidebar - icon sizing is wrong
Hi there. I am trying to figure out how to make a macOS Tahoe app in SwiftUI with a sidebar. The problem I’m having is that the icons are the wrong size. If you visually compare the resulting sidebar with any built-in macOS app (Finder, Notes, Mail, Music, etc.) the built-in apps all have larger icons and the spacing is different from my SwiftUI app, which has too small icons and (I think) wrong spacing. I am trying to figure out what SwiftUI code I need to write to get a sidebar that looks the same as the other built-in macOS Tahoe apps. It’s also important to note that Tahoe sidebars have larger icons at the top level, and in cases where the items have a disclosure triangle with additional items nested within, the nested icons have smaller icons. I have not figured out how to properly replicate this effect either. I have spent quite a lot of time on trial-and-error with various combinations of .frame() and .font() modifiers. However, none of the results look quite right to me, and
Topic: UI Frameworks SubTopic: SwiftUI Tags:
1
0
88
Jan ’26
Reply to Tahoe sidebar - icon sizing is wrong
Thanks for your post. Extremely detailed and interesting. You're right that manually adjusting sizes with and isn't ideal for achieving consistency with native macOS apps, especially across different macOS versions. In previous macOS, I think, SwiftUI provided a way to automatically adjust sidebar icon sizes to match system standards by using modifiers and appropriate view hierarchies. Unfortunately, we are unable to provide any details regarding the design or code for Apple macOS apps. Additionally, the icon sizes may differ from the default icons provided by SwiftUI as you already point it out. Cannot even provide you a way to achieve a sidebar similar to built-in macOS apps, I would recommend for you can leverage the documentation at https://developer.apple.com/documentation/technologyoverviews/adopting-liquid-glass that automatically configures the list to adopt macOS sidebar conventions, including icon sizing and spacing. That Tech Note also provides many different tips to work
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jan ’26
Reply to In-app purchases problem
purchase product that have not been submitted to review What is the status of your subscriptions in App Store Connect? For more information, see In-App Purchase statuses. but apple said to me that I uploaded an in-app purchase product that have not been submitted to review, From TN3186: Troubleshooting In-App Purchases availability in the sandbox > Validate your product identifier list: To verify your product identifier list, perform these steps: In your Xcode project, locate your app’s bundle ID. In App Store Connect, find the app that matches your app’s bundle ID. Verify each product identifier in your list matches the product identifier (Product ID) of an In-App Purchase created for the app in App Store Connect.
Jan ’26
Reply to StoreKit does not return any subscriptions on any device (approved IAPs, production app)
Is there any known App Store Connect or StoreKit condition where: • subscriptions are approved and visible in App Store Connect • but StoreKit returns an empty result set in production? From TN3188: Troubleshooting In-App Purchases availability in the App Store: Validate your product identifier list To verify your product identifier list, perform these steps: In your Xcode project, locate your app’s bundle ID. In App Store Connect, find the app that matches your app’s bundle ID. Verify each product identifier in your list matches the product identifier (Product ID) of an In-App Purchase created for the app in App Store Connect. Review the availability of your In-App Purchases A customer’s Apple Account country or region determines the App Store country or region where they can purchase content. For example, an account set to Canada can only purchase In-App Purchases from the App Store in Canada. If your In-App Purchase is available in all countries or regions of the App Sto
Topic: UI Frameworks SubTopic: General
Jan ’26
Reply to Inability to Communicate via APDU on iOS Despite NFC Tag Detection
You can't switch sessions once connected, but you can connect to an NDEF tag by using NFCTagReaderSession and do both NDEF and non-NDEF actions. Because NFCISO7816Tag inherits from NFCNDEFTag it gains all its capabilities and then adds more specific functionality. If a NFCTag returned from a NFCTagReaderSession supports NDEF, NDEF operations (query NDEF status, write and read NDEF) are performed internally, and the NDEF data should be available as properties in the same NFCTagReaderSession.
Topic: App & System Services SubTopic: Core OS Tags:
Jan ’26
Reply to Guideline 5.2.5 - Legal - Intellectual Property
Update: They approved the app after all. it's online. I am not sure why they disagreed or finally allowed, there was not explanation to my argument. I asked why it was intellectual property if I used their APIs to build an app? Here is the iPad version 3 panel NavigationSplitView This is really a basic, but specific app, with Categories of data, list of a category data, and the data
Topic: Design SubTopic: General
Jan ’26
Reply to iOS 26 fails to automatically switch to [system settings - personal hotspot ] directly from application ]
[quote='871489022, MikasaAlen, /thread/805248?answerId=871489022#871489022, /profile/MikasaAlen'] Does iOS 26 completely prohibit the use of private APIs? [/quote] It’s best not to think about this stuff in terms of public and private APIs. Rather, there are APIs, the public things that we specifically publish for third-party developers to use, and implementation details, meaning everything else. Once you think about it this way, the consequences are clear: If you use APIs, you can reasonably expect consistent behaviour. If you rely on implementation details, the behaviour can change between different OS releases, different device types, different users, and so on. [quote='871489022, MikasaAlen, /thread/805248?answerId=871489022#871489022, /profile/MikasaAlen'] And is the only recommended method for opening the [Settings app] now the use of [UIApplicationOpenSettingsURLString] API? [/quote] Supported URL Schemes lists lots of different APIs for opening Settings, each focused on a specific test. But i
Topic: App & System Services SubTopic: General Tags:
Jan ’26
Swift student challenge- help
To whoever is bothered enough to help (trust me, I get the feeling if you're not), I want to enter the swift student challenge either this year or next year, depending on how things play out. Anyway, I just wanted to know two things: 1) how long on average it takes to build a project which won distinguished winner and 2) whether any distinguished winners could send me the playgrounds they built. To be clear, I do not want the code, I just want to know what you did, what you called the playground, a list of some features it had, how long it took, just to help me prepare, because YouTube doesn't have much of that. Thanks :)
4
0
420
Jan ’26