Search results for

SwiftUI List performance

50,605 results found

Post

Replies

Boosts

Views

Activity

Reply to iOS 14 Maps Guides API
I am just tired waiting, I have created tool https://www.gotoapplemaps.com tool that helps users migrate Google Maps saved places into Apple Maps Guides. Would love to connect and share what I’ve built, in case it’s relevant to your work Input: https://maps.apple.com/guides?user=CgZOb3J3YXkSDQiuTRC%2Ftp738KjgnkgSDQiuTRDTvNu52eDB8yASDQiuTRCsttyBoo2Y9ksSDQiuTRDs8sbj4ti70DcSDgiuTRDK3uiNlO2%2F8aYBEg0Irk0Q1ZXczsXCt4cV Step-by-step: Extract query param user=. Percent-decode %2F -> /. Base64-decode into 99 bytes. Protobuf parse yields: Field 1 (string): Norway Field 2 (repeated submessage): 6 entries For this sample, each Field 2 entry is a tiny submessage containing exactly two varints: Entry message Field 1 (varint): constant 9902 across all entries Entry message Field 2 (varint): a 64-bit identifier-like value (varies per entry) Example Field 2 entries decoded from this sample (showing entry submessage fields): entry 1: {1: 9902, 2: 5205458886502882111} entry 2: {1: 9902, 2: 2370871449427041875} entry 3: {1: 9
2w
Reply to Broken autocomplete in Xcode 26
Thanks for the post, there isn’t a bug on autocomplete that I am aware of and many versions of Xcode 26.+ have been released. Interesting does not work for you, but could be because the improvements? I know there are always improvements in autocomplete. Just to make sure when you press Up/Down to scroll through the full list of completions what do you see? still gives you access to the full list without forcibly accepting the first match? If you type part of a name (e.g., NSV) and pause, you can hit Control + Space to bring up the explicit suggestion list, does this work? Can you check Go to Xcode → Settings → Editing → Completion and can you provide me a screenshot of what you have there? Thanks, Albert Pascual
  Worldwide Developer Relations.
2w
Reply to Annoying popup window in Xcode Previews when the initial controller of the main storyboard is a macOS window
Thank you for replying, Albert. I'm focusing on developing a macOS app using non-SwiftUI app lifecycle. I would need some SwiftUI-AppKit bridging in this project, and I might want to use Xcode Previews also on AppKit view controllers. I'm encountering the problem described in the first post, meaning that I can't experience both Xcode Previews and Storyboard well as expected. That popup window can be moved away, but it reappears back at the initial position every time I write source code. I created the first post a bit prematurely. Sorry for that. I noticed that it's nothing about the entry point. Instead, it's about making any instance of window controller from storyboards — instantiateInitialController() I used before, and other instantiate… methods. Just make a window controller from a storyboard and show its window (e.g. in applicationDidFinishLaunching(_:)). Only NSStoryboard trigger the problem, while NSNib don't. I also noticed that the mechanism behind the problem also works when the
2w
Reply to Cannot Preview in this file. Simulator was shutdown during an update.
There are a few different issues that are at play here, so I'll try to untangle it a bit. Firstly to highlight what I send back to all reports of this symptom. This is what you probably saw in email already, but sharing here for everyone else's benefit: This symptom (Failed to start launchd_sim: could not bind to session, launchd_sim may have crashed or quit responding) occurs when launchd_sim (the principal process that kicks off the simulator) doesn't respond to an initial checkin message within a set time window. It is known to be caused by a variety of issues. Incorrect permissions on system temporary directories: Some users inadvertently change the permissions on system temporary directories, which can lead to this issue as well as problems in other software. If this is the issue, it can be fixed by running sudo chmod 1777 /private/var/tmp /private/tmp. 3rd Party Security Software: Some 3rd party security software can cause significant performance delays loading processes from the simulator runt
2w
Missing "Dolby Vision Profile" Option in Deliver Page - DaVinci Resolve 20 on iPadOS 26
Dear Support Team, I am writing to seek technical assistance regarding a persistent issue with Dolby Vision exporting in DaVinci Resolve 20 on my iPad Pro 12.9-inch (2021, M1 chip) running iPadOS 26.0.1. The Issue: Despite correctly configuring the project for a Dolby Vision workflow and successfully completing the dynamic metadata analysis, the Dolby Vision Profile dropdown menu (and related embedding options) is completely missing from the Advanced Settings in the Deliver page. My Current Configuration & Steps Taken: Software Version: DaVinci Resolve Studio 20 (Studio features like Dolby Vision analysis are active and functional). Project Settings: Color Science: DaVinci YRGB Color Managed. Dolby Vision: Enabled (Version 4.0) with Mastering Display set to 1000 nits. Output Color Space: Rec.2100 ST2084. Color Page: Dynamic metadata analysis has been performed, and Trim controls are functional. Export Settings: Format: QuickTime / MP4. Codec: H.265 (HEVC). Encoding Profile: Main 10. The Problem:
0
0
69
2w
Reply to Annoying popup window in Xcode Previews when the initial controller of the main storyboard is a macOS window
Thank you for your post and your screenshot. While the screenshot depicts the app as a SwiftUI View, your post explicitly mentions that the app is built using UIKit Storyboards? When utilizing Xcode Previews with a storyboard-based macOS application that retains the default window controller entry point, it is important to note that the app’s entry point is typically defined by a window controller in the storyboard (often linked to the initial scene). In full-screen mode, macOS may preserve this state across UI refreshes. Could you please isolate the entry point of the app and create a new focused project that displays it? Additionally, I recommend providing your expectations so that we can assist you in fulfilling them. If you intend to use SwiftUI, I would suggest sticking to that framework. Albert Pascual
  Worldwide Developer Relations.
2w
Reply to SwiftUI Menu label: How to center an icon inside a circle?
Thanks for the post. Great question as there are so many ways to accomplish this and probably better than the code I had for an icon. SwiftUI developers please feel free to jump info this thread and provide a simple solution to this problem. Label(title: {}) { Image(systemName: gearshape.fill) .resizable() .aspectRatio(contentMode: .fit) .frame(width: 44, height: 44) .foregroundColor(.white) .background( Circle() .fill(Color.blue.opacity(0.8)) .overlay { Circle() .stroke(Color.white, lineWidth: 2) } ) } The icon maintains perfect circular shape with consistent padding and size. Added subtle background and outline for better visibility. Albert Pascual
  Worldwide Developer Relations.
Topic: Design SubTopic: General Tags:
2w
Reply to Can TextField handle undo?
Hello @Cykelero, On iPhone, users shake the phone to undo. This is a system setting. From what I found and tried, I don't think TextField or even SwiftUI can disable that interaction on iPhone. But on Mac you can use the toggles listed above or the ⌘+Z function can be overwritten with AppKit commands Let me get a confirmation that I'm not missing anything, if possible. In the meantime let me know if this helps.  Travis Trotto - DTS Engineer
Topic: UI Frameworks SubTopic: SwiftUI
2w
SwiftUI List: observable reference types not deallocated immediately after refresh
Hello 👋 I ran into a SwiftUI lifecycle gotcha while debugging a List with .refreshable I share the code used to reproduce the issue @Observable final class CounterModel: Identifiable { let id: String var title: String var value: Int init(id: String, title: String, value: Int = 0) { self.id = id self.title = title self.value = value } deinit { print(deinit, title) } } @Observable final class ObservableCountersStore { var counters: [CounterModel] = [ .init(id: 1, title: A), .init(id: 2, title: B), .init(id: 3, title: C) ] func refresh() async { try? await Task.sleep(nanoseconds: 300_000_000) counters = [.init(id: 4, title: D)] } } struct ObservableCountersListView: View { @State private var store = ObservableCountersStore() var body: some View { List { ForEach(store.counters) { counter in ObservableCounterRow(counter: counter) } } .refreshable { await store.refresh() } } } struct ObservableCounterRow: View { let counter: CounterModel var body: some View { Text(counter.title) } } Obse
2
0
173
2w
All notarization submissions stuck "In Progress" — first-time notarization, 9 submissions over 16+ hours
I'm submitting my first macOS app (a native SwiftUI menu bar app, signed with Developer ID Application certificate, Hardened Runtime enabled) for notarization using xcrun notarytool submit with keychain profile authentication. All 9 of my submissions have been stuck at In Progress for up to 16 hours. None have transitioned to Accepted or Invalid. Logs are unavailable for all of them (notarytool log returns Submission log is not yet available). Environment macOS: 26.2 (25C56) Xcode: 26.1.1 (17B100) notarytool: 1.1.0 (39) App: Native SwiftUI, universal binary (x86_64 + arm64), ~2.2 MB DMG Bundle ID: com.gro.ask Team ID: 4KT56S2BX6 What I've verified Code signing is valid: $ codesign --verify --deep --strict GroAsk.app passes with no errors $ codesign -dvvv GroAsk.app Authority=Developer ID Application: Jack Wu (4KT56S2BX6) Authority=Developer ID Certification Authority Authority=Apple Root CA CodeDirectory flags=0x10000(runtime) # Hardened Runtime enabled Runtime Version=26.1.0 Format=app bund
2
0
144
2w
Abnormal Background Delivery Frequency of HealthKit on Specific watchOS Devices
1/ Issue Summary In our application, we use HKObserverQuery together with:HKHealthStore.enableBackgroundDelivery(for:frequency: .immediate) to enable HealthKit Background Delivery, allowing the system to wake our App Extension in the background to process health data updates. Under the same app build, identical HealthKit permission configuration, and the same watchOS version, we have observed significant differences in background delivery frequency across different devices. Specifically, on certain devices (e.g. Apple Watch Series 10, watchOS 26.2.1), the background delivery frequency is significantly reduced, behaving as if it is capped at approximately once per hour. On other control devices, under the same configuration, background delivery is triggered much more frequently and consistently, at approximately every 8–16 minutes. This behavior is consistently reproducible on the affected devices. **We would like to understand whether there are any officially recommended implementation patterns, best practice
1
0
163
2w
SwiftUI Menu label: How to center an icon inside a circle?
Hi Everyone. Can you help me with my settings icon design. I'm trying to create a circular settings button using Menu. My code here: struct MenuView: View { var body: some View { Menu { Text(Hello) Text(How are you) } label: { Image(systemName: gearshape.fill) .clipShape(Circle()) } .clipShape(Circle()) .padding(.top, 10) .padding(.leading, 20) } } You can see my try, this one looks wrong. It should be like this: Just Circle with setting image inside. Thank you an advance 😭🙏🛐
1
0
483
2w
How to do settings icon for menu in SwiftUI?
Hi everyone. Can you help me with my settings icon design. I`m trying to create circular setting button using Menu. My code here: struct MenuView: View { var body: some View { Menu { Text(Hello) Text(How are you) } label: { Image(systemName: gearshape.fill) .clipShape(Circle()) } .clipShape(Circle()) .padding(.top, 10) .padding(.leading, 20) } } You can see my try, this one looks wrong. It should be like this: Just Circle with setting image inside. Thank you an advance 😭🙏🛐
1
0
513
2w
Reply to Background Assets: Second and subsequent download cancellations fail (iOS 26.0–26.3 RC)
Hello! That definitely looks like a problem! I think that you’re encountering two separate issues: one with download cancellation and another with internal analytics. For the former issue, we’ll try to reproduce it on our side. It would be super helpful if you could file a feedback report in Feedback Assistant, making sure to attach sysdiagnose logs from the device on which asset-pack cancellation failed soon after reproducing the behavior. Plus, filing a feedback report ensures that you’ll be automatically notified when we fix the issue. We’ll let you know if we figure out a workaround before the fix is available. Thanks! The fact that version 0 of the asset pack with the ID X-XXXXXX-XXX finished being downloaded couldn't be reported: Error Domain=NSCocoaErrorDomain Code=3851 Property list invalid for format: 200 (property lists cannot contain objects of type 'CFError') That error message concerns the latter issue. If you installed the app from TestFlight, then the system collects data abou
Topic: App & System Services SubTopic: General Tags:
2w