Search results for

SwiftUI List performance

50,605 results found

Post

Replies

Boosts

Views

Activity

Accept a Review Rejection Defeat or Play Along with Reviewer
I have a desktop application developed in SwiftUI that shows property locations on the map. That's NOT the main feature. IF you give the application permission to access your location, the blue dot will appear on the map. If you don't, the blue user dot won't appear. That's the only difference with location services. In other words, the application has no use of user's current position beyond showing it on the map. Since it's just the matter of showing or not showing the blue dot on the map, the application doesn't really need to use the location service. Anyway, the reviewer is talking about something else by rejecting the application in two aspects. Guideline 5.1.1 - Legal - Privacy - Data Collection and Storage Guideline 5.1.5 - Legal - Privacy - Location Services As I said earlier, the application only wants to show the blue dot on the map so that you can see your property locations relative to your current location. In code, it's something like the following. Map(position: $propertyViewModel.map
3
0
141
1w
Reply to com.apple.developer.payment-pass-provisioning missing in TestFlight build despite provisioning profile having it
Hi Quinn, Thank you for above pointers. Following it, I found that: The release entitlements file we were using (Ro_ _ IOSS_ _ _n.entitlements) did not include com.apple.developer.payment-pass-provisioning, so the app never claimed it. That’s why App Store Connect flagged the entitlement as missing. **Fixes I made: ** a. Added this key (entitlement) to RoboIOSSiren.entitlements manually: com.apple.developer.payment-pass-provisioning and updated aps-environment to production aps-environment production b. After (a) I did below in order: Clean + Archive In Xcode: Product > Clean Build Folder… Then: Product > Archive Verify entitlements in the archive In Organizer, select the new archive → Distribute App → Custom → App Store Connect → Export On the “Review IPA content” screen, confirm the entitlements list now includes: com.apple.developer.payment-pass-provisioning Upload using Transporter Upload the exported .ipa with Transporter. Check App Store Connect Wait for processing and re-check the TestF
Topic: Code Signing SubTopic: Entitlements Tags:
1w
Reply to Image not rendering on some devices
Hello @thisisjaymehta, Welcome to SwiftUI development! 🥳 The first thing I would look at is the Attributes menu, located in the Inspector area (the sidebar on the right of Xcode). You can also quickly open this tab by pressing ⌥ ⌘ 4. In that menu you will notice options for devices, appearances, sizes and more. In your screenshot, it appears you have the Scales set to Single Scale. You can try switching this to Individual Scale and add different scales which are configured to show on different devices. You can find more information about how to do that here Fitting images into available space If not, try appearances and see if it's a light/dark mode issue. It looks like you already did some troubleshooting by setting a solid white color background. A great tip you can use to check both color schemes easily is by using this toggle at the bottom of the canvas in Xcode, which will show both the light and dark move preview in Canvas. For more information on Xcodes canvas see Previewing your app’s interf
Topic: UI Frameworks SubTopic: SwiftUI Tags:
1w
Reply to How to animate `UIHostingController.view` frame when my View's size changes?
Hello @isaacweisberg, I see the UIKit example on the right is animating correctly to me. It looks like you followed the steps correctly: Line 75 of ViewController.swift the UIHostingController observes .preferredContentSize. Nice work on implementing that! 😎👍 Can you clarify on what you mean? Are you trying to achieve the same effect in SwiftUI or is the UIKit example on the right not what you were looking for? Let me know,  Travis Trotto - DTS Engineer
Topic: UI Frameworks SubTopic: SwiftUI Tags:
1w
Reply to Can I disable a SwiftUI View from being a draggable source, but still leave it enabled as a dropDestination?
Sorry for the delay, I didn't get the notification. Thanks for the code, I would recommend to add a link to a focused project where I can download and play with it as of course without the images nor drop targets is hard to see what you are trying to accomplish and will help many developers here figure it out. Customize the drag preview to make the interaction more intuitive. You can modify the draggable modifier .draggable(player, preview: { VStack { Image(jersey) .resizable() .frame(width: 50, height: 50) if let player = content.player { Text(player.last) .font(.caption) } } }) Currently, the drop handler just prints the item. You might want to update the CellContent's player based on the drop? .dropDestination(for: String.self) { items, location in if let firstItem = items.first { print(Dropped: (firstItem)) // Update player logic here if needed // e.g., content.player = updatedPlayerBasedOn(firstItem) } return true } Looking forward to your focused sample. That'll help us better understand what's going on
Topic: UI Frameworks SubTopic: SwiftUI Tags:
1w
MusicKit + AirPlay
Hello, I'm working on a MusicKit based SwiftUI app. I've integrated AirPlay using the AVRoutePickerView like so: struct UIKitAirPlayPickerView: UIViewRepresentable { func makeUIView(context: Context) -> AVRoutePickerView { let routePickerView = AVRoutePickerView() routePickerView.prioritizesVideoDevices = false return routePickerView } func updateUIView(_ uiView: AVRoutePickerView, context: Context) {} } The AirPlay menu appears as expected, and selecting an AirPlay device functions as expected. I'm currently sending audio from my app to a HomePod. However, the state of the AVRoutePickerView does not reflect the playback state. There is no cover art and it says Not Playing. When my device is locked, my lock screen shows the album art, metadata and AirPlay routing as expected. My app uses the ApplicationMusicPlayer however I encounter the same behavior using the SystemMusicPlayer. Any guidance on how to troubleshoot this? Is there any other way to integrate the system AirPlay picker into my app, or
1
0
196
1w
ABM - API - Released Devices
I am working on an internal app for our company that links ABM, Intune, and an AT&T-provided CSV of IMEIs, and I am fairly new to this and using AI (sorry) to help me. I can search for our devices using either the serial # and/or IMEI. If the device has been released, I can still find it using the SN, but not with the IMEI. If a result is returned on a released device's SN, the IMEI is present. I have a list of IMEIs from our AT&T account and want to cross-reference those IMEIs to get the SN. Is there a way to include the Released Devices in the search?
0
0
87
1w
Help with visionOS pushWindow issues requested
I first started using the SwiftUI pushWindow API in visionOS 26.2, and I've reported several bugs I discovered, listed below. Under certain circumstances, pushed window relationships may break, and this behavior affects all other apps, not just the app that caused the problem, until the next device reboot. In other cases, the system may crash and restart. (FB21287011) When a window presented with pushWindow is dismissed, its parent window reappears in the wrong location (FB21294645) Pinning a pushed window to a wall breaks pushWindow for all other apps on the system (FB21594646) pushWindow interacts poorly with the window bar close app option (FB21652261) If a window locked to a wall calls pushWindow, the original window becomes unlocked (FB21652271) If a window locked in place calls pushWindow and the pushed window is closed, the system freezes (FB21828413) pushWindow, UIApplication.open, and a dismissed immersive space result in multiple failures that require a device reboot (FB21840747) v
0
0
141
1w
Severe Frame Drops When Resizing macOS Window with Dynamic LazyVGrid
Context: I am building a macOS file (currently image only) browser using SwiftUI. The core view is a ScrollView containing a LazyVGrid. The layout is dynamic: as the window resizes, I calculate the optimal number of columns and spacing using a GeometryReader. The Issue: While scrolling is pretty smooth (thanks to custom image caching and prefetching), window resizing is significantly laggy. After having scrolled the UI stutters and drops frames heavily while dragging the window edge. The Code: https://github.com/MorusPatre/Binder
2
0
76
1w
Reply to SwiftUI can not find
Hi, The problems you are facing is due to the fact that you named your project SwiftUI. This is causing the build system to create a module for your app called SwiftUI which is the exact same module name that the system library is called. I expect you'd see these issues resolved if you rename your app to something that doesn't match one of the system frameworks.
1w
Reply to Apple's PCC + Foundation Models
Apologies for the delay! Please see our doc main page: https://developer.apple.com/documentation/foundationmodels The Foundation Models framework provides access to Apple’s on-device large language model that powers Apple Intelligence to help you perform intelligent tasks specific to your use case. This article from Apple says something similar: https://machinelearning.apple.com/research/apple-foundation-models-2025-updates The new Foundation Models framework gives access to developers to start creating their own reliable, production-quality generative AI features with the ~3B parameter on-device language model.
1w
Reply to Whimsical tooltips behaviour in popover (Appkit)
There is however a problem with this solution. If there is a TextField in the popover, typing in makes it firstResponder ; and the parent window controller do not receive mouseEnter events that triggers the tooltips. Which means I do not need to simulate mouseDown but just makeFirstResponder. So at the end, the question boils down to: how to manage the conflict between popover and its parent window about FirstResponder. Is it possible to have first and second responder, I mean forwarding the mouse messages to the parent ? Considering that The shared NSApplication object performs the important task of receiving events from the window server and distributing them to the proper NSResponder objects. NSApp translates an event into an NSEvent object, then forwards the event object to the affected NSWindow object. All keyboard and mouse events go directly to the NSWindow object associated with the event. … When a window object receives an NSEvent object from NSApp, it distributes it to the objects in its vi
Topic: UI Frameworks SubTopic: AppKit Tags:
1w
Reply to iOS 26 - Identify network switch
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. You wrote: To get info about nearby WIFi networks and filter out company specific SSIDs and to prioritize them Can you expand on that? What are you doing with that SSID list once you get it? It’s hard for me to suggest a path forward without a better understanding of your ultimate goal. [quote='875214022, arnair, /thread/808341?answerId=875214022#875214022, /profile/arnair'] Is there an official deprecation schedule or timeline? [/quote] No. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
1w
Reply to Launchscreen issues on iPadOS 26
I can confirm there is something crashing my Apps that only have Launchscreen storyboards. I use Autoresizing and not Autolayout. And guys please, make a real effort to build a Launchscreen component in SwiftUI. It makes no sense in 2026, always ten years after and we still have a storyboard file messing/crashing our Apps in Swift.
Topic: UI Frameworks SubTopic: General
1w
Reply to Swift package in Xcode 26.3 rc
Do this: Launch Xcode 26.3rc. File > New > Project. At the top, select iOS. In the main list, select App Playground. Complete the workflow from there. Good luck with your submission! Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
1w