Search results for

SwiftUI List performance

50,605 results found

Post

Replies

Boosts

Views

Activity

Reply to Titles and Header Auto Changing Color?
The first image with time 9:35 shows a list of transactions sorted by date using List{}. The column headers are displaying in DARK mode with a black stripe, and header items have switched from black to white. The second image (9:39) changed to a ScrollView {}. The column headers did not change color, but scrolled out of the view. The header is showing that the text has changed from black to white while scrolling. The final image is a ScrollView with LazyVStack pinnedViews. Google suggested using .toolbarColorScheme(.light, for: .navigationBar) at the bottom of the ScrollView to prevent the header stuff from changing color. So my question is: Is this change in color for these views a bug or is this normal behavior with Liquid Glass?
Topic: Design SubTopic: General Tags:
2w
Reply to Testing Significant Location Change
You would want to use the Simulator's Features -> Location to test how your app handles location updates. But eventually, for testing background capabilities, the only reliable test would be to run the app on a physical device while it is standalone, not connected to Xcode - for which you would want to implement your own logging and testing methodology within the app - and for location apps, actually travel, as simulated locations are going to perform better than real ones, and if testing background capabilities attached to Xcode, you will not get a real life demonstration of how your app performs, as debugging via Xcode will give it additional capabilities to assist in debugging your code, but will not show what your customers will eventually experience.
2w
Reply to BLE Advertising in Background
When an app is not in the foreground, any advertising by it is done on a best effort basis, and it cannot be guaranteed, and there are some changes and limitations to the advertised data. As Bluetooth is a shared resource, when other apps and system resources need to use Bluetooth, advertising for apps in the background will slow down, and may even stop for short periods of time. To perform certain peripheral role tasks while in the background, you must include the UIBackgroundModes key with the bluetooth-peripheral value in your app’s Info.plist file. That said, you should be aware that advertising while your app is in the background operates differently than when your app is in the foreground. In particular, when your app is advertising while in the background: The CBAdvertisementDataLocalNameKey advertisement key is ignored, and the local name of peripheral is not advertised. All service UUIDs contained in the value of the CBAdvertisementDataServiceUUIDsKey advertisement key are placed in a specia
Topic: App & System Services SubTopic: Core OS Tags:
2w
Reply to Buttons become unresponsive after using .windowStyle(.plain) with auto-hiding menu
Can you try commenting out your entity/SpatialTapGesture code? I have a hunch that the entity may be intercepting taps intended for the button. visionOS has some odd issues when we place gestures on entities that the user will be inside of. You may want to take a look at SpatialEventGesture instead of using the tap in an entity. This will let you listen to input anywhere in the immersive space without using a specific entity. Docs: https://developer.apple.com/documentation/swiftui/spatialeventgesture Example Code: https://stepinto.vision/example-code/spatial-event-gesture/ Is .windowStyle(.plain) expected to affect button interaction behavior? No, I've used buttons in many plain windows. Unless visionOS 26.3 introduced a new bug, it seems like something else is going on here. What is the recommended approach to achieve a transparent/hidden window in immersive mode while maintaining button interactivity? You're on the right track, see above about the entity gesture intercepting input. Is there an alte
Topic: Spatial Computing SubTopic: General Tags:
2w
Reply to Where did I screw up trying concurrency?
It’s better to reply as a reply, rather than in the comments; see Quinn’s Top Ten DevForums Tips for this and other titbits. It's now public Cool. That’s some pretty complicated code. What are you actually trying to achieve here? Looking at the interface for SynchronizedQueue, it seems like you’re creating an actor with enqueue and dequeue semantics. You then have a world of unsafe code to implement a linked list. Could you perhaps replace that with the Deque type from Swift Collections. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
2w
Reply to Apps do not trigger pop-up asking for permission to access local network on macOS Sequoia/Tahoe
[quote='874373022, TotalPhase, /thread/814226?answerId=874373022#874373022, /profile/TotalPhase'] Our engineers have thoroughly followed the practices outlined in TN3179. [/quote] Cool. I’m pretty sure there are mysterious extant problems with local network privacy, especially on the Mac. However, the ones I’m aware of are much harder to reproduce [1]. In your case it sounds like you can reproduce this 100% of the time. For example: You set up a VM that’s never seen your app before. You install the app on that VM. You start it up. It’s blocked from performing local network operations. And it never displays the local network alert. Is that right? Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com [1] For example, the one in this thread
2w
Reply to Any (developer) option to override log quarantine?
[quote='874485022, qb_s, /thread/814022?answerId=874485022#874485022, /profile/qb_s'] disable logging for all other processes/subsystems … that tend to be noisy too? [/quote] Yeah, I could see how that might actually help in your situation. [quote='874485022, qb_s, /thread/814022?answerId=874485022#874485022, /profile/qb_s'] I filed an improvement request anyway (FB21839588). [/quote] Fair enough. I’ll be interested to see how that pans out (-: [quote='874485022, qb_s, /thread/814022?answerId=874485022#874485022, /profile/qb_s'] And what of log stream …? [/quote] Honestly, I’m not sure what’ll happen in that case. Live streaming of the full system log has a significant impact on system performance, to the point that we even added a little warning about it in Console (“Stream log messages will impact system performance.”). My concern here is that, regardless of whether log entries get dropped or not [1], that performance impact could perturb the system to the point where the bug you’
Topic: App & System Services SubTopic: Core OS Tags:
2w
Live Activities widget extension does not reflect updated SwiftUI UI (custom views/assets appear ignored)
Hello Apple Developer Technical Support, I’m following up on case #102807413324 and submitting this as a code-level support request. We are integrating iOS Live Activities (ActivityKit + WidgetKit extension written in SwiftUI) into an Expo/React Native app. We’re seeing behavior where the Live Activity UI shown on the Lock Screen appears to “stick” to an older layout and ignores updated SwiftUI code and/or bundled assets, even after rebuilding, reinstalling, and removing existing Live Activities before testing again. Environment Device: iPhone 13 iOS: 26.2 macOS: 15.7.3 (24G419) Xcode: 16.4 (16F6) Expo SDK: 52 React Native: 0.76.9 expo-live-activity: ^0.4.2 Build type: Ad-Hoc signed IPA (EAS local build) Summary We have a WidgetKit extension target (LiveActivity.appex, bundle id: stimul8.LiveActivity) using ActivityConfiguration(for: LiveActivityAttributes.self). The extension contains multiple SwiftUI views selected via a “route” (derived from deepLinkUrl / title / subtitle), and u
1
0
83
2w
Message Filter Extension Not Working on iOS 26.1
Hello, We are using a Message Filter Extension (ILMessageFilterExtension) to classify SMS/iMessage content (junk vs allow) in our app. After testing on iOS 26.1, we want to confirm whether there are any behavioral, performance, or API-level changes that impact message filtering, such as: Changes in how often the filter extension is invoked Differences in classification accuracy or system overrides New privacy, entitlement, or permission-related restrictions Execution time limits or memory constraints Any changes specific to iMessage vs SMS filtering We did not find any explicit mention of Message Filter Extensions in the iOS 26.1 release notes and would like to confirm whether the existing behavior from previous iOS versions remains unchanged. Has Apple introduced any known or undocumented changes in iOS 26.1 that developers should be aware of when supporting Message Filter Extensions? Sometime I also found unpredictable behaviour on iOS version 18.5 or below, like sometime it works but sometimes sta
3
0
207
2w
Message Filter Extension not working on iOS 26.0 and above
Hello, We are using a Message Filter Extension (ILMessageFilterExtension) to classify SMS/iMessage content (junk vs allow) in our app. After testing on iOS 26.1, we want to confirm whether there are any behavioral, performance, or API-level changes that impact message filtering, such as: Changes in how often the filter extension is invoked Differences in classification accuracy or system overrides New privacy, entitlement, or permission-related restrictions Execution time limits or memory constraints Any changes specific to iMessage vs SMS filtering We did not find any explicit mention of Message Filter Extensions in the iOS 26.1 release notes and would like to confirm whether the existing behavior from previous iOS versions remains unchanged. Has Apple introduced any known or undocumented changes in iOS 26.1 that developers should be aware of when supporting Message Filter Extensions? Sometime I also found unpredictable behaviour on iOS version 18.5 or below, like sometime it works but sometimes sta
1
0
132
2w
Endpoint Security Framework Bug: setuid Event Incorrectly Attributed to Parent Process During posix_spawn
Feedback ticket ID: FB21797397 Summary When using posix_spawn() with posix_spawnattr_set_uid_np() to spawn a child process with a different UID, the eslogger incorrectly reports a setuid event as an event originating from the parent process instead of the child process. Steps to Reproduce Create a binary that do the following: Configure posix_spawnattr_t that set the process UIDs to some other user ID (I'll use 501 in this example). Uses posix_spawn() to spawn a child process Run eslogger with the event types setuid, fork, exec Execute the binary as root process using sudo or from root owned shell Terminate the launched eslogger Observe the process field in the setuid event Expected behavior The eslogger will report events indicating a process launch and uid changes so the child process is set to 501. i.e.: fork setuid - Done by child process exec Actual behavior The process field in the setuid event is reported as the parent process (that called posix_spawn) - indicating UID change to the parent process. Att
2
0
540
2w
Reply to SwiftUI ScrollView scrollTo not consistently scrolling to latest message
The above approach did improve the scrolling behavior to some extent, but it wasn’t fully reliable in the long run. After that, I tried a different solution by bridging SwiftUI with UIKit and switching to a UICollectionView. With this approach, the scrolling issues were completely resolved, and I no longer see any unexpected behavior, even with large, continuously streaming responses.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
2w
Reply to Review taking much longer than usual
Thank you for your response and for the suggestion. I have signed in with my Developer ID and checked the provided contact link. However, on my side, I’m currently only able to see the email/contact form option and I do not see the “Request a one-on-one App Review consultation” option listed under the Meet with Apple or App Review sections. I have already submitted an email request regarding the app review status through the available contact option, but so far I haven’t received any update. Could you please let me know if there is any specific eligibility, region-based limitation, or alternative way to request a one-on-one App Review consultation? Any guidance would be greatly appreciated. Thank you for your support.
2w
Reply to App "In review" for long time
Thank you for your response and for the suggestion. I have signed in with my Developer ID and checked the provided contact link. However, on my side, I’m currently only able to see the email/contact form option and I do not see the “Request a one-on-one App Review consultation” option listed under the Meet with Apple or App Review sections. I have already submitted an email request regarding the app review status through the available contact option, but so far I haven’t received any update. Could you please let me know if there is any specific eligibility, region-based limitation, or alternative way to request a one-on-one App Review consultation? Any guidance would be greatly appreciated. Thank you for your support.
2w