Search results for

SwiftUI List performance

50,606 results found

Post

Replies

Boosts

Views

Activity

Reply to Animation does not work with List, while works with ScrollView + ForEach
@Claude31 so what should I do to fix it? Regarding your issue: https://stackoverflow.com/questions/74253108/why-is-animation-not-working-in-a-list-but-is-working-in-vstack This has nothing to do with my question. Also this is not true for me: // ❌ Not animating – it animates perfectly. Regarding https://stackoverflow.com/questions/76418666/swiftui-list-animations-are-not-smooth-when-adding-elements-to-a-vstack-in-a-lis : Adding .animation modifier did not help.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jan ’26
Reply to iOS and Android
I have two options that you should at least look at: If your goal is to run non-UI Swift code on Android then Swift’s Android Workgroup is making great strides on that front. If you want to extend that to SwiftUI code, there’s a third-party vendor who’s tackling that directly [1]. And to be clear, I’m not actually recommending either of these, because I’ll only recommend stuff that I’ve actually used. But you should at least factor them into your decision making. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com [1] https://skip.tools
Topic: Programming Languages SubTopic: Swift Tags:
Jan ’26
SwiftUI menu not resizing images
I failed to resize the icon image from instances of NSRunningApplication. I can only get 32×32 while I'm expecting 16×16. I felt it unintuitive in first minutes… Then I figured out that macOS menu seems not allowing many UI customizations (for stability?), especially in SwiftUI. What would be my best solution in SwiftUI? Must I write some boilerplate SwiftUI-AppKit bridging?
1
0
90
Jan ’26
Reply to SwiftUI menu not resizing images
Sorry I just forgot about copying the NSImage instance. I didn't see performance issue loading about 50 resized images into menus in my workspace. Solved. let nsImage = { let returnValue = icon.copy() as! NSImage nsImage.size = CGSize(width: 16, height: 16) return nsImage }() Image(nsImage: nsImage)
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jan ’26
Reply to NFC Secure Element / ISO7816 Entitlement Availability by Region (Indonesia)
Yes, this entitlement is restricted by region, along with other eligibility requirements. These are explained in NFC & SE Platform for secure contactless transactions under the Requirements and availability section. The list of regions which it is available in is also in that section. If this list changes, the updated list will be reflected in this section. Without a special entitlement, apps would be limited to interacting with tags that do not require secure element access. there are no workarounds for such apps based or distributed in regions where special entitlements are not available. There are no supported workarounds of this limitation, if such entitlements are not available for you, whether it is due to a region or other requirements.
Topic: Privacy & Security SubTopic: General Tags:
Jan ’26
Guidance on implementing Declared Age Range API in response to Texas SB2420
I've spent the last few days researching the upcoming laws in Texas and other US states, and how these laws will impact on developers around the world. I want to share what I've learned so far with the community and get feedback on my current understanding. This post is not so much focused on a single API, but more of the bigger picture. Background The law essentially mandates that: (1) app store platforms implement age categorization and verification mechanisms, and (2) developers implement logic to listen to age categorization signals provided by the platform and respond accordingly. You can read the law itself here: https://capitol.texas.gov/tlodocs/89R/billtext/html/SB02420S.HTM Most people seem to be interpreting the law as follows: All developers who distribute apps in the USA are effectively required to implement the new APIs (required by Texas, not by Apple). The penalties are heavy, but it's unclear whether developers would actually be pursued and by whom (e.g. would someone seriously pursue an alarm
10
0
1.4k
Jan ’26
hapticpatternlibrary.plist error with Text entry fields in Simulator only
When I have a TextField or TextEditor, tapping into it produces these two console entries about 18 times each: CHHapticPattern.mm:487 +[CHHapticPattern patternForKey:error:]: Failed to read pattern library data: Error Domain=NSCocoaErrorDomain Code=260 The file “hapticpatternlibrary.plist” couldn’t be opened because there is no such file. UserInfo={NSFilePath=/Library/Audio/Tunings/Generic/Haptics/Library/hapticpatternlibrary.plist, NSURL=file:///Library/Audio/Tunings/Generic/Haptics/Library/hapticpatternlibrary.plist, NSUnderlyingError=0x600000ca1b30 {Error Domain=NSPOSIXErrorDomain Code=2 No such file or directory}} <_UIKBFeedbackGenerator: 0x600003505290>: Error creating CHHapticPattern: Error Domain=NSCocoaErrorDomain Code=260 The file “hapticpatternlibrary.plist” couldn’t be opened because there is no such file. UserInfo={NSFilePath=/Library/Audio/Tunings/Generic/Haptics/Library/hapticpatternlibrary.plist, NSURL=file:///Library/Audio/Tunings/Generic/Haptics/Library/hapticpatternlibrary.plist, NSUnd
2
0
377
Jan ’26
Reply to iOS and Android
Thanks for the great post. That's a common and excellent question for iOS developers looking to expand to Android and hope there are many Android developers in the forums wanting to provide their opinion how they manage the 2 different technologies. Looking forward to see other people’s opinions as mine is based on my development experience. I should be the last person to have an opinion about this based on my job. In my modest and personal opinion not being an Android developer, you will almost certainly need to rewrite the user interface of your app for Android. However, you might be able to reuse a significant portion of your app's core business logic, data models, and networking code written in Swift. iOS Uses UIKit (older) or SwiftUI (newer) for building UIs. Android uses XML layouts with Views (older) or Jetpack Compose (newer) for building UIs. As far as I know there's no direct way to convert SwiftUI or UIKit code into Android XML/Compose, or vice-versa. The underlying rendering engi
Topic: Programming Languages SubTopic: Swift Tags:
Jan ’26
Reply to NSFileProviderPartialContentFetching and high-latency API calls
I'll also add that, given this dynamic: My backend has a high Time To First Byte latency (approx. 3 seconds) but reasonable throughput once the connection is established. ...you might want to consider adding logic that would use the initial NSFileProviderPartialContentFetching call to trigger a full download, instead of only downloading EXACTLY what we specifically request. More broadly, I think you should probably treat NSFileProviderPartialContentFetching as a tool that helps get data to the calling application more quickly, NOT as a firm API contract that you will ONLY retrieve the specific byte range it requested. For large files, your startup latency numbers are high enough that if you REALLY stick to specific byte range retrieval, you're going to end up with absurdly poor performance. Case in point, my back of the envelope map shows that downloading a ~2 GB file at ~128KB every 3s is going to take ~13 hours. Similarly, if you can fetch the full file with minimal additional time/bandwidth, I thi
Topic: App & System Services SubTopic: Core OS Tags:
Jan ’26
macOS Shortcuts App Needs an Export to PDF Feature
I am very new to the macOS Shortcuts application. In my opinion, the documentation is sparse and totally inadequate. The internet seems to be the only method of figuring out how to use this application. I have recently created a shortcut that is working well for me. It has several steps and is too large to fit in the Shortcuts editor window, so I cannot grab a screenshot of it for documenation purposes. I also cannot copy the contents of the editor window and paste them anywhere, such as in a new Note or TextEdit document. I do think Apple should add a means to create a PDF document of the Shortcuts editor window's contents. I went to the official Apple feedback page to leave comments but, irony of ironies, the Shortcuts app is not listed there! I have no idea what I am doing at this point but am excited to learn how to use Shortcuts to automate and simplify tasks that I have to perform frequently. Here's hoping the documentation and features for this application will one day be comprehensiv
2
0
112
Jan ’26
Widget - App may push the list view twice when launched from widget
Issue Description: Tapping the app widget sometimes triggers the Universal Link twice, causing duplicate navigation or actions within the app Steps to Reproduce: Add the app widget to the home screen Tap the widget to open the app via the Universal Link Observe that the Universal Link is sometimes fired twice Expected Behavior: Tapping the widget should trigger the Universal Link only once. Actual Behavior: Universal Link is triggered twice, causing duplicate navigation or actions.
2
0
116
Jan ’26
Reply to Widget - App may push the list view twice when launched from widget
Thanks for the post. I’m trying to figure out if this is a bug report or there is something you are doing that causing that experience and I can help as tapping an app widget should indeed trigger a Universal Link only once, not twice . The observed behavior of it sometimes firing twice can lead to a poor user experience, causing duplicate actions, navigation, or data processing. The core issue is that the mechanism for opening the Universal Link from the widget, or the app's handling of that link, is being invoked more than once for a single user tap. Would you be able to provide me the app you are using as well as a link to your AASA file. If you're using a Link view in SwiftUI for your widget, ensure there isn't any accidental nesting or multiple Link instances covering the same tap area. Place a breakpoint or detailed logging at the delegate where the app gets called at. Is this method being called twice for a single widget tap? If your app uses SwiftUI's App lifecycle, check if the clos
Jan ’26
# [CRITICAL] Metal RHI Memory Leak - Resource exhaustion vulnerability (CWE-400) - Bug Report
[CRITICAL] Metal API Memory Leak - Heap Memory Never Released to OS (CWE-400) Security Classification This issue constitutes a resource exhaustion vulnerability (CWE-400): Aspect Details Type Uncontrolled Resource Consumption CWE CWE-400 Vector Local (any Metal application) Impact System instability, denial of service User Control None - no mitigation available Recovery Requires application restart Summary Metal heap allocations are never released back to macOS, even when the memory is entirely unused. This causes continuous, unbounded memory growth until system instability or crash. The issue affects any application using Metal API heap allocation. This was discovered in Unreal Engine 5, but reproduces in a completely blank UE5 project with zero application code - confirming this is Metal framework behavior, not application-level. Environment OS: macOS Tahoe 26.2 Hardware: Apple Silicon M4 Max (also reproduced on M1, M2, M3) API: Metal Reproduction Steps Run any Metal application that allocates and deallocat
5
0
985
Jan ’26
Reply to Foundation Models: Is the .anyOf guide guaranteed to produce a valid string?
anyOf lists all the options in the schema that's presented to the model. anyOf constrains the generation of a string at prediction time. anyOf does both of the above. The answer is 3, both. Since your anyOf isn't actually working, I would suggest removing it from your Tool, and then add your own custom instructions instead. For example: You can ONLY call the tool getCityInfo for the these cities: London, Paris, New York. For questions about all other cities you MUST tell the user Sorry, I can't look up that city. Note I'm lightly yelling at the model in ALL CAPS in the instructions above to help enforce the constraint through prompting alone.
Jan ’26
Reply to Local Network permission on macOS 15 macOS 26: multicast behaves inconsistently and regularly drops
Herewith an update from us on the Local Network Privacy issues that we and our users are experiencing. Over the past period we have done many tests with various combinations of machines and OS'es. Long story short Local Network Security settings seem to behave different between applications that have been either Downloaded, AirDropped or tranferred over a USB Drive. Airdropping the application to the machine gives the expected behavior. Installing the application by downloading it or by installing it over a USB drive gives broken behavior for Local Network Access. Deleting the application and then Airdropping the Application can fix the behavior. Having multiple versions of the same application on the machine breaks Local Network Access. Airdropping gives an additional warning on first launch, so could this be Gatekeeper related? Reproduction These are the steps where you would be able to recreate the issue, we've done this multiple times on multiple different machines on multiple OS versions. The latest OS t
Jan ’26