Search results for

SwiftUI List performance

50,605 results found

Post

Replies

Boosts

Views

Activity

Reply to Labeling an eSIM during the installation wizard, not present on iOS 26
Hi Travis, the app that I work on sells eSIMs to our customers. We have the entitlement which allows us to perform a direct installation via the addPlan method of CoreTelephony. We try to educate and guide our customers through the installation wizard that iOS offers, though we have noticed that the steps in the wizard are different from iOS 18 to iOS 26, e.g. some of our customers report that they are not prompted at all with steps such as labeling the eSIM or choosing what to use for mobile data, etc. What would be the best contact, or is there a source on which we could rely on these changes?
3w
Reply to SwiftUI subviews traverse issue
SwiftUI view hierarchy is internal to the framework. When using SwiftUI, you won't need to traverse the view hierarchy – If you do, I'd say that you probably aren't on the right track... Having said that, I'm quite curious why you need to traverse the view hierarchy in SwiftUI. Would you mind to share? Best, —— Ziqiao Chen  Worldwide Developer Relations.
Topic: UI Frameworks SubTopic: SwiftUI
3w
Reply to App Logout / Termination Behavior When Changing Bluetooth Settings With and Without Multitasking
“while using multitasking” means reducing the app’s size and displaying it side by side with the Settings screen at the same time. For better understanding, I will attach an image. Ahh, now I understand. So, the first thing to understand here is that a number of our settings (particularly around authorization) don't really have a unauthorize path. That is, many APIs provide a way for an app to check if they're authorized, but they don't have a notification/delegate for you used to be authorized but now you're not. Often this issue is as much architectural as it is API. For example, in the case of Bluetooth you'd need to invalidate all existing Bluetooth objects (since the app doesn't have access anymore) and you'd also need a way to recreate them again (when authorization is restored). All of this is quite unwieldy, so instead of building that architecture, the system just terminates the app instead. As you noticed, this is Allow Tracking“ example: Additionally, I found that YouTube also terminates when the “
Topic: App & System Services SubTopic: General Tags:
3w
NSFileSandboxingRequestRelatedItemExtension: Failed to issue extension
Hi there, I have an SwiftUI app that opens a user selected audio file (wave). For each audio file an additional file exists containing events that were extracted from the audio file. This additional file has the same filename and uses the extension bcCalls. I load the audio file using FileImporter view modifier and within access the audio file with a security scoped bookmark. That works well. After loading the audio I create a CallsSidecar NSFilePresenter with the url of the audio file. I make the presenter known to the NSFileCoordinator and upon this add it to the FileCoordinator. This fails with NSFileSandboxingRequestRelatedItemExtension: Failed to issue extension for; Error Domain=NSPOSIXErrorDomain Code=3 No such process My Info.plist contains an entry for the document with NSIsRelatedItemType set to YES I am using this kind of FilePresenter code in various live apps developed some years ago. Now when starting from scratch on a fresh macOS26 system with most current Xcode I do not manage to get
7
0
241
3w
Reply to How to make fluid TabBar
Hello @Julsalim , You don't need to programmatically hide the TabBar, it can be done by restructuring your Views. Make sure the NavigationStack contains the TabView, and the Tab contains the NavigationLink. Here's an example view structure that achieves what you're looking for: Also, welcome to iOS Development! SwiftUI is my favorite!  Travis Trotto - DTS Engineer NavigationStack { TabView{ Tab(, systemImage: ) { List{ NavigationLink(... }
Topic: UI Frameworks SubTopic: SwiftUI
3w
Reply to XCode26.2 ld: Assertion failed: ((ct == Atom::ContentType::objcConst) || (ct == Atom::ContentType::objcData) || (ct == Atom::ContentType::constData) || (ct == Atom::ContentType::constText)), function ObjCClassReadOnlyDataRef, file Atom.cpp, line 329
Thanks for this very interesting post. I'm not an expert in this field and I invite experts to comment, in my modest opinion, It looks like there’s something unexpected with ObjC/Swift metadata. Can we ask them for a focused sample project that reproduces the issue, can you make a copy of the project that is causing the issue, and then remove everything that isn’t important to keep the meta data in the project that may be causing this? Maybe the linker error you're encountering in Xcode 26.2 after migrating from Xcode 16.2, along with the modifications you've made to the linker flags, points to a deeper issue with how object files are being processed, specifically related to Objective-C runtime data. Could that mean or indicates there is an incompatibility or corruption in Objective-C metadata? Any object files or libraries you're linking were compiled with an older compiler version? Any external libraries or frameworks, with the Xcode 26.2 compiler. If you're using CocoaPods or Carthage, update them ( or ) a
3w
Reply to Can we decode twice in the same session with unarchiver?
Thanks for the reply. I tried to replace if let result = unarchiver.decodeObject(of: [/* list */], forKey: someKey) as? someClass { by do { let result = try unarchiver.decodeTopLevelObject(of: [/* list */], forKey: someKey) as! someClass It compiles but does not decode: I get a failure on log : unarchiving failed And with this pattern, I do not know how to test the double call within the print Is it an error to use unarchiver.decodeObject ? What can be the side effects ? unarchiver.decodeObject(of: [/* list */], forKey: someKey)
Topic: App & System Services SubTopic: General Tags:
3w
How to make fluid TabBar
Hey there guys, I'm new on SwiftUI and iOS Development world. How can I achieve a seamless TabBar transition in SwiftUI? Currently, when I programmatically hide the TabBar on a pushed view and swipe back to the previous view, there is a noticeable delay before the TabBar reappears. How can I make it appear instantly? Here is the link to the video https://streamable.com/3zz2o2 Thank you in advance
Topic: UI Frameworks SubTopic: SwiftUI
2
0
124
3w
Mac Studio: Continuity Camera unavailable after reboot unless USB camera is connected
Summary On Mac Studio systems (no built-in camera), macOS does not initialize camera services after a normal reboot if no physical camera is present. As a result, Continuity Camera does not appear anywhere in the system. Observed behavior System Information → Camera reports “No video capture devices were found.” Continuity Camera (iPhone) is completely absent from camera lists. Plugging in any USB UVC webcam immediately initializes camera services and causes both the USB camera and the iPhone (Continuity Camera) to appear. The USB camera can then be unplugged and Continuity Camera continues working until the next reboot. Reproduction steps Use a Mac Studio (no built-in camera) on recent macOS. Ensure no USB webcam or external camera is connected. Reboot the Mac normally. After login, open System Information → Camera. Expected Camera services should initialize even when no physical camera is present, allowing Continuity Camera to be available as the primary camera. Actual No camera devices are present
1
0
113
3w
"userVerification" is ignored during Passkey Autofill in non-Safari browsers
When using passkeys stored in iCloud Keychain (Passwords app) via Passkey Autofill in browsers other than Safari, the userVerification parameter is ignored and user verification (UV) is not performed. As a result, relying party servers that require userVerification = required fail validation because the UV flag is not set, causing passkey authentication to fail. This issue occurs when the following setting is disabled: Settings → Face ID & Passcode → Use Face ID For → Password AutoFill The issue is reproducible only with the following combination: Non-Safari browsers (e.g. Chrome) Passkeys stored in iCloud Keychain (Passwords app) Passkey Autofill The issue does not occur in the following cases: Safari with passkeys stored in any credential manager Non-Safari browsers using credential managers other than iCloud Keychain Steps to Reproduce: Go to Settings → General → Autofill & Passwords, and enable the Passwords app under “Autofill From”. Go to Settings → Face ID & Passcode → Use Face ID
1
0
195
3w
SwiftUI subviews traverse issue
Our project include UIKIt and SwiftUI, and in some case, we need to traverse all subviews, for UIKit implement views, below code: func findView(byIdentifier identifier: String) -> UIView? { if self.accessibilityIdentifier == identifier { return self } for subview in subviews { if let found = subview.findView(byIdentifier: identifier) { return found } } return nil } works well, but for SwiftUI implement views, like below code: struct ContentView: View { var body: some View { VStack { Image(systemName: globe) .imageScale(.large) .foregroundStyle(.tint) .accessibilityIdentifier(Image) Text(Hello, world!) .accessibilityIdentifier(Text) } .padding() } } it can not find subviews in the ContentView, and only a view with type: _UIHostingView> can be found, the Image and Text is not found; And because we have set a accessibilityIdentifier property, so we also try use: @MainActor var accessibilityElements: [Any]? { get set } to find sub node, but this accessibilityElements is not stable, we can
Topic: UI Frameworks SubTopic: SwiftUI
2
0
162
3w
Reply to How to animate `UIHostingController.view` frame when my View's size changes?
Alright, I have tried to follow your advice and I don't see how this can help. I have this setup: struct AnimatedView: View { @ObservedObject var viewModel: ViewModel var body: some View { let width = viewModel.isExpanded ? 120.0 : 50.0 let height = viewModel.isExpanded ? 400.0 : 100.0 let cornerRadius = viewModel.isExpanded ? 42.0 : 8.0 Color(uiColor: .red) .frame(width: width, height: height) .cornerRadius(cornerRadius) } } The hosting controller is mounted to the top of its parent via constraints. Then I do this in my tap handler for a totally separate button: @objc func tap() { withAnimation(Animation.easeInOut(duration: 0.5), { viewModel.isExpanded.toggle() }) } And what I observe here is that my hosting controller's view immediately teleports to the new frame - its center is immediately in the position where it should be only at the end of the animation. Meanwhile, the SwiftUI content is animating correctly, except it has already teleported. I have tried to use your answer @DTS Engineer I have
Topic: UI Frameworks SubTopic: SwiftUI Tags:
3w
Reply to Orphaned 9GB Simulator Runtime in /System/Library/AssetsV2 - Cannot Delete (SIP protected)
Inside System : Library I have the folder AssetsV2 with large Folders. com_apple_MobileAssest_iOSSimulatorRuntime 85.83 GB and .com_apple_MobileAssest_xrOSSimulatorRuntime 56.23 GB. Also _appleTVOS.. 21.41 GB and _watchOS.. 18.87 GB. I've tried xcrun simctl runtime list and delete. After a computer restart xcrun reported Total Disk Images dropping from 267.9G to 106.8G BUT no change to Finder reported sizes. DaisyDisk showed 99G free and now 240G or 68G A lot of disk images appear in Disk Utility but eject doesn't work for most of them, maybe none. In Xcode I see a lot of simulators. I was able to delete many of them but no change to memory reported by the Finder. It looks like I've tried the suggestions above. I've run out of ideas.
3w