Hey all, I found a weird behaviour with the searchable component. I created a custom bottom nav bar (because I have custom design in my app) to switch between screens. On one screen I display a List component with the searchable component. Whenever I enter the search screen the first time, the searchable component is displayed at the bottom. This is wrong. It should be displayed at the top under the navigationTitle. When I enter the screen a second time, everything is correct. This behaviour can be reproduced on all iOS 26 versions on the simulator and on a physical device with debug and release build. On iOS 18 everything works fine. Steps to reproduce: Cold start of the app Click on Search TabBarIcon (searchable wrong location) Click on Home TabBarIcon Click on Search TabBarIcon (searchable correct location) Simple code example: import SwiftUI struct ContentView: View { @State var selectedTab: Page = Page.main var body: some View { NavigationStack { ZStack { VStack { switch selectedTab { c
Search results for
SwiftUI List performance
50,605 results found
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
Original Problem We use codesign and notarytool in a scripted environment to build and distribute binaries daily. We also do manual builds by logging into the build server using SSH. This has been working for many years, but after updating to a new Developer ID Application certificate, codesign was failing with errSecInternalComponent and the console logs showed errSecInteractionNotAllowed. Summary of Resolution Attempting to fix the problem resulted in multiple copies of the same Certificate which were NOT shown by Keychain Access. I had to run security delete-identity multiple times to clear out the redundant Identities and then imported the certificate using the security CLI tool. Details I originally followed these instructions for requesting and installing a new certificate: https://developer.apple.com/help/account/certificates/create-developer-id-certificates/ Tip: Use the security tool intead These instructions fail to mention two critical points: 1) they assume the machine you generate the request on
Topic:
Code Signing
SubTopic:
Certificates, Identifiers & Profiles
Tags:
Signing Certificates
Code Signing
Hi! I recently had an idea to build an iOS app that allows users to create a system-level block of specified web domains by curating a blacklist on their device. If the user, for instance, inputs *example.com to their list, their iPhone would be blocked from relaying that network traffic to their ISP/DNS, and hence return an error message (iPhone can't open the page because the address is invalid) instead of successfully fetching the response from example.com's servers. The overarching goal of this app would be to allow users to time-block their use of specified websites/apps and grant them greater agency over their technology consumption, and I thought that an app that blocks traffic at the network level, combined with the ability to control when to/not to allow access, would be a powerful alternative to the existing implementations out there that work more on the browser-level (eg. via Safari extension, which is isolated to the scope of user's Safari browser) or via Screen Time (which can be easy t
Hey! Wa are developing a VPN app for iOS and whenever we enable enforceRoutes we see 20% to 30% download and upload speed drop. Here are example results from our environment: | Upload | Download | ------------------------------------------ enforceRoutes off | 337.65 | 485.38 | ------------------------------------------ enforceRoutes on | 236.75 | 357.80 | ------------------------------------------ Is this behavior known and expected? Is there anything we can do to mitigate the effect of enforceRoutes in our application? Test were performed on iOS 26.2.1.
Topic:
App & System Services
SubTopic:
Networking
I see many developers struggling with ASO where AI written content does not deliver results, performance analysis is unclear, localization is ignored, App Store optimization is incomplete, and keywords are often poorly chosen. I am considering running two simple group sessions to share practical tips and show clear ways to improve ASO with real effort involved, and I would like feedback on this idea whether offered for a small fee or even for free.
Topic:
App Store Distribution & Marketing
SubTopic:
App Store Connect
Tags:
App Store
App Review
App Store Connect
Hi, I have systematic crashes when updating Xcode Cloud Workflows in Xcode, reproduced with Xcode 26.2 and 26.3 RC. Steps to reproduce: Go to the Report Navigator Tab Select Cloud Edit Workflow Perform a change Click Save Crash I did not see any recent issue in the forum. I have a crash dump, but it's too long to post here.
[Submitted as FB21958289] A minimal SwiftUI app logs framework warnings when a bottom bar Menu is used with the system search toolbar item. The most severe issue is logged as a console Fault (full logs below): Adding 'UIKitToolbar' as a subview of UIHostingController.view is not supported and may result in a broken view hierarchy. Add your view above UIHostingController.view in a common superview or insert it into your SwiftUI content in a UIViewRepresentable instead. This appears to be a framework-level SwiftUI/UIKit integration issue, not custom UIKit embedding in app code. The UI may still render, but the warnings indicate an internal hierarchy/layout conflict. This occurs in simulator and physical device. REPRO STEPS Create a new project then replace ContentView with the code below. Run the app. The view uses NavigationStack + .searchable + .toolbar with: ToolbarItem(placement: .bottomBar) containing a Menu DefaultToolbarItem(kind: .search, placement: .bottomBar) EXPECTED RESULT
Here’s an even simpler repro sample that removes List and .searchable entirely: struct ContentView: View { var body: some View { NavigationStack { Text(Hello, World!) .navigationTitle(Toolbar Repro) .toolbar { ToolbarItem(placement: .bottomBar) { Menu { Button(Action 1) { } Button(Action 2) { } } label: { Label(Actions, systemImage: ellipsis.circle) } } } } } }
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags:
Device: iPhone (real device) iOS: 17.x Permission: Granted Notifications are scheduled using UNCalendarNotificationTrigger. The function runs and prints SCHEDULING STARTED. However, notifications never appear at 8:00 AM, even the next day. Here is my DailyNotifications file code: import Foundation import UserNotifications enum DailyNotifications { // CHANGE THESE TWO FOR TESTING / PRODUCTION // For testing set to a few minutes ahead static let hour: Int = 8 static let minute: Int = 0 // For production use: // static let hour: Int = 9 // static let minute: Int = 0 static let daysToSchedule: Int = 30 private static let idPrefix = daily-thought- private static let categoryId = DAILY_THOUGHT // MARK: - Permission static func requestPermission(completion: @escaping (Bool) -> Void) { let center = UNUserNotificationCenter.current() center.requestAuthorization(options: [.alert, .sound]) { granted, _ in DispatchQueue.main.async { completion(granted) } } } // MARK: - Schedule static func scheduleNext30Days(isPro: Bo
Hi @MichaelOShea, I've reviewed this thread and your logs. There are two aspects I want to mention: We suggest using the on-device model for simple tasks with a small context window. You can find a list of capabilities (and what to avoid) under Understand model capabilities. If you can pair down your instructions and prompt to a very basic single task that can be described in a sentence or two, then that may be a good candidate for Foundation Models. For large tasks, especially those with multiple steps to process complex information or more than a few paragraphs, it may be better to utilize a server-side frontier model. The system prompt you linked to likely falls into this category. Depending on how your adapter was trained, it may not be tuned for the on-device environment, which is further contributing to why it exceeds the context window. If this is the case then we suggest using the standard SystemLanguageModel and implementing your custom functionality via instructions and prompting instead. W
Topic:
Machine Learning & AI
SubTopic:
Foundation Models
Is it possible to drive NavigationSplitView navigation with a view in sidebar (left column) that is not a List? All examples that I have seen from this year only contain List in sidebar. I ask this because I would like to have a more complex layout in sidebar (or first view on iOS) that contains a mix of elements, some of them non-interactive and not targeting navigation. Here’s what I would like to do: import SwiftUI struct Thing: Identifiable, Hashable { let id: UUID let name: String } struct ContentView: View { let things: [Thing] @State private var selectedThingId: UUID? var body: some View { NavigationSplitView { ScrollView(.vertical) { VStack { ForEach(things) { thing in Button(Thing: (thing.name) ( selectedThingId == thing.id ? selected : )) { selectedThingId = thing.id } } SomeOtherViewHere() Button(Navigate to something else) { selectedThingId = someSpecificId } } } } detail: { // ZStack is workaround for known SDK bug ZStack { if let selectedThingId { Text(There is a thin
Since upgrading to a new Mac I have been unable to pair XCode to devices using the Devices and Simulators window. When I press the + button I get 'no devices found'. I have a second Mac which works as expected. When I try 'xcrun devicectl list devices' the phone I've connected shows up with limited information and is 'unavailable'. If I run 'sudo xcrun devicectl list devices' then I get a message telling me not to run xcrun as root but also the full information about the phone as expected, plus it shows the status as 'available (paired)'. So the device seems to be defined with root privileges but XCode is not. I am running XCode 26.2 but this issue has been around since 26.0. Any suggestions welcome.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Sorry for the delay in responding to this. Here are a few bug reports that have gotten no attention. All are macOS 26 bugs (the one with iPhone in the title affects macOS and iOS). I have just now gone through to confirm that each are happening consistently on 26.3. Many have been around since 26.0. Several say Recent Similar Reports: More than 10. The last one is a feature suggestion. Thank you for looking into these, especially the first two. FB20794466 -- Item Numbers shown when Overlay is set to None FB21356190 -- Orange microphone appears in menu bar at all times FB20933185 -- Siri voices break System voice UI FB20934473 -- No option to disable Type to Siri ... Siri window does not go away FB20785769 -- Speak announcements only works with Samantha voice FB20813399 -- Keyboard Shortcuts' Restore Defaults button should read Restore Default FB20875408 -- Reverse sort order only available in list view FB20875564 -- Record Selection Menu Bar Icon does not return to default state after Esc is pressed
Topic:
Accessibility & Inclusion
SubTopic:
General
Yes, it makes sense now, so you are letting us know the API: guard let url = URL(string: https://www.apple.com) else { return } if UIApplication.shared.canOpenURL(url) { UIApplication.shared.open(url) } else { print(Could not open URL) } Is not working? I can help you with that as there is no bugs on that api at all. I just put the simple app to open and opens safari, but if there is no browser nothing will open? import SwiftUI struct ContentView: View { var body: some View { VStack { Image(systemName: globe) .imageScale(.large) .foregroundStyle(.tint) Text(Hello, world!) }.task { guard let url = URL(string: https://www.apple.com) else { return } if UIApplication.shared.canOpenURL(url) { UIApplication.shared.open(url) } else { print(Could not open URL) } } .padding() } } #Preview { ContentView() } However the API requires an app capable of handling this request as explained here: (Launching the app brings the other app to the foreground.) If no app is capable of handling the specified scheme, the com
Topic:
UI Frameworks
SubTopic:
UIKit
I've seen this behavior as well. Haven't been able to track down exactly why it's happening. I attempted to create a stripped down example, but couldn't recreate the same issue. A couple of things about the ToolbarItemGroup(placement: .keyboard) {} I'm investigating: My implementation is view a SwiftUI View that conforms to the ToolbarContent protocol. My implementation is part of a separate Swift Package utilized in my main project.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: