Search results for

SwiftUI List performance

50,605 results found

Post

Replies

Boosts

Views

Activity

PDF Services directory is missing and creating takes two steps
Our app attempts to install a PDF workflow in ~/Library/PDF Services but on a clean install of newer macOS versions, that directory no longer exists. Attempting to create the folder requires prompting for user permission to access the ~/Library directory and then prompting the user to access the newly created ~/Library/PDF Services directory. This is annoying and awkward. Creating the PDF Service in the sandbox Library directory does nothing useful since the PDF workflow does not show up in the PDF workflow list in the print dialog. We would like to create both directories in one step, or have the OS create the folder like it used to. Is there an entitlement that will allow our app access to the ~/Library directory without requiring Full Disk Access? Is there a way to have the OS create a symlink in ~/Library for the PDF Services directory that works with macOS 14 and later?
3
0
191
4w
Reply to "Application damaged and can't be opened' error prompt on 15.6.1 Sequoia
Yes, also on Mac where my application is seen earlier Yes, I perform install using sudo installer command which is a standard way of installation Yes, that's correct. Some more information: Running codesign --verify --deep --strict /path/to/your.app throws the following error, invalid resource directory (directory or signature have been modified) If I run sudo codesign --verify --deep --strict /path/to/your.app, it does not throw any error. I have verified the sudo command run with the verbose option, it says valid on disk and satisfies its Designated Requirement
Topic: Code Signing SubTopic: General Tags:
4w
Reply to DNS Proxy system extension – OSSystemExtensionErrorDomain error 9 “validationFailed” on clean macOS machine
Thanks for the updated posts. [quote='873386022, Leo_Nagano, /thread/812857?answerId=873386022#873386022, /profile/Leo_Nagano'] legacy dns-proxy entitlement [value] [/quote] To be clear, this isn’t a legacy value. This value is used for App Store distribution, both on iOS and macOS. It’s also used for development. The -systemextension suffix is used for direct distribution using Developer ID signing. Neither value is more legacy than the other. As to what’s going wrong, you’ve tried a lot of different things and it’s hard to be sure what’s what at this state. However, this is problematic: NSExtensionPointIdentifier com.apple.system_extension.network_extension And it suggests that you could do with some high-level guidance. The best place to get that is Xcode. Consider this sequence: In Xcode 26.2, create a new project from macOS > App template. In my case I named it “Test812857”. Then create a new target within that project, using the macOS > System Extension > Network Extension template. In my case
4w
TestFlight build visible on macOS but not installable: “Can only be tested on an iOS device” for Mac (Designed for iPad)
Hello everyone. We have an app that has been on the App Store for several years, originally distributed for iOS and iPadOS only. Recently, we enabled Mac (Designed for iPad) and started distributing macOS-compatible builds. Current situation: The app is available and downloadable from the macOS App Store and runs correctly on Apple Silicon Macs. The same app/build appears in TestFlight on macOS, but cannot be installed. TestFlight shows the message: “This app can only be tested on an iOS device.” This suggests the app itself is Mac-compatible, but TestFlight is treating the build as iOS-only. Environment and checks performed: Mac is Apple Silicon. App Store Connect app-level availability for Mac (Designed for iPad) is enabled. The app is not Mac Catalyst; it is a UIKit iOS/iPadOS app. Distribution is done via GitLab CI. CI uploads use an App Store provisioning profile (Apple Distribution), not development or ad-hoc. iPhone and iPad TestFlight installs work as expected. Info.plist verification: UIRequ
0
0
113
4w
mplications of Switching Primary App Store Category (Maps & Navigation → Travel)
We're a premium paid app - currently listed in Maps & Navigation as our primary category, with Travel set as secondary. We’ve been in Maps & Navigation for ~9 years and consistently rank in the top 5. However, aside from one other app that regularly shares that top-5 position with us, most apps in this category don’t appear relevant to our product or audience. They also don’t seem to reach the same type of user we’re targeting. By contrast, the Travel category contains a much higher concentration of apps that serve the same type of user as ours, and feels like a more natural discovery fit. What’s unclear to us is: Why a secondary category exists if the app does not appear to surface in that category for browsing/discovery. The implications of swapping our primary and secondary categories. Specifically, if we reverse Category 1 and Category 2: Do we retain our existing ratings and review history? Are there any penalties or long-term impacts beyond potential short-term ranking changes? We’re co
0
0
113
Jan ’26
Reply to SwiftUI view state resetting after alert is shown
I tested the sample code, even using a random color to debug the view to check if it is being recreated, it looks like VStack in List = unstable identity when presentation state changes. I applied .border() modifier with the random color, to track if a view is recreated. Only when the presentation state changes, then the count is reset. Color( red: .random(in: 0...1), green: .random(in: 0...1), blue: .random(in: 0...1) ) Separate the buttons to test, and when the isPresented flag changes after the alert, the LibraryView in the VStack causes issues. private struct ViewWithAlert: View { @State private var isPresented: Bool = false @State private var presentedCount = 0 var body: some View { VStack { // Test without alert - just increment the counter Button { // isPresented = true // Comment out alert presentedCount += 1 } label: { Text(Increment count: (presentedCount)) .border(Color.random) } // Separate button to show alert // -> When tapped, presentedCount resets to 0 on tap OK Button(Show Alert)
Topic: UI Frameworks SubTopic: SwiftUI
Jan ’26
Reply to How to implement bullet and numbered list functionality in ios26 attributed string text editor
Hello natanbiley, TextEditor does not currently support lists, either parsed from Markdown or otherwise. You could potentially mutate the selection binding to 'manually' insert list symbols and newlines to format selected text into a list. However, this requires implementing your own list structure and formatting, since this workaround does not give you access to the native iOS formatting of lists. Thank you for your patience, Richard Yeh  Developer Technical Support
Topic: UI Frameworks SubTopic: SwiftUI
Jan ’26
Reply to Unable to load a subscription product in the app
As your app is not live yet I assume that you're testing on sandbox, I would also recommend reading the details to trouble shoot on this tech note: TN3186: Troubleshooting In-App Purchases availability in the sandbox. An overview would be: To offer In-App Purchases in your app, call Product.products(for:) with a list of product identifiers (Product ID) matching these products in the sandbox. Product.products(for:) returns an array that includes an instance of Product for each of the In-App Purchases. If Product.products(for:) fails to return a Product instance for your products in the sandbox, validate your product identifier list and confirm you set a price and added localizations for each of the In-App Purchases. After you complete the above checks, retry the product request. If the In-App Purchases are still missing, it may be due to the following reasons: Your bundle ID doesn’t match the bundle ID of an app in App Store Connect. Your bundle ID is disabled for the In-App Purchase capabili
Topic: App & System Services SubTopic: StoreKit Tags:
Jan ’26
Reply to Simulators not showing up in Xcode Version 26.2 (17C52) (Mac OS 26.2 (25C56))
Thanks for the post, can you provide me a better screenshot on the target and device to run the target? Your screenshot looks like target to build against the simulator instead of the run target. Verify that the necessary simulator versions are listed and installed. If not, click the Install button next to the desired versions. What do you see on that screen? As a last resort, if none of the above solutions work, consider uninstalling and reinstalling Xcode. This can help resolve deep-seated installation issues. Albert Pascual
  Worldwide Developer Relations.
Jan ’26
Reply to Cannot see appended AttributedString in NSTextView
Thanks for the post, very interesting. Can you provide the code that is causing that issue? I am not hitting this issue when I add a new string with // What happens when you do this? DispatchQueue.main.async { self.textView.textStorage.append(attributedString) } https://developer.apple.com/documentation/uikit/uitextview/textstorage 
UI updates should always be performed on the main thread. If you're appending attributed strings asynchronously, make sure to wrap your update code in a dispatch to the main queue. Double-check that you're modifying the correct instance. If there are multiple text views or if the text view is being recreated somewhere else in your code, modifications might be applied to the wrong instance. Albert Pascual
  Worldwide Developer Relations.
Topic: UI Frameworks SubTopic: AppKit Tags:
Jan ’26
Reply to TextEditor scroll to selection
Thanks for your question and post. I hope I can understand exactly what you mean by scrolling. Do you mean scrolling inside a Text? Scrolling to the cursor position in a TextEditor in SwiftUI? Or like with UITextView in UIKit? Do you mean scrolling to a specific part of the text? // Something like this? TextEditor(text: $text) .background( GeometryReader { geometry -> Color in (...) ) To provide a more accurate response, I would appreciate it if you could provide additional context and some code snippets. This will enable us to understand your specific requirements and the exact functionality you are seeking to achieve. Albert Pascual
  Worldwide Developer Relations.
Topic: UI Frameworks SubTopic: SwiftUI
Jan ’26
Apple Developer Program Enrollment as Russian Citizen in 2026
As stated in the title, I'm a Russian citizen located outside of Russia and Belarus. I am trying to enroll into the program as a US LLC that has EIN. I am the only owner and employee of it. Today has been exactly 1 month of me going back and forth with Apple Support. I provided all of the requested information, including company ownership verification, as well as have been verified that I'm not on the sanctions list. For the past two weeks, I have not received any reply from the support. I know that access to the program is heavily restricted for Russian citizens, but I have not seen any mention that I cannot enroll even if I'm applying as a US LLC registered with the IRS. I also did not get any mention from the support that my citizenship is a problem. I am not sure what to do next. Any advice is appreciated.
0
0
109
Jan ’26
Animation Help
Hello, I am trying to use matchedGeometryEffect to animate between an item in a list view and the item's detail view. Right now, I am getting an unwanted cross-fade animation as the view transitions. So the list item moves into place as it should with the modifier, but it fades out as its detail version fades in, which I do not want. I do not want any fading at all, just the movement from one component to the other. How do I stop this? Thanks.
2
0
72
Jan ’26