Search results for

SwiftUI List performance

50,605 results found

Post

Replies

Boosts

Views

Activity

Unexpected URLRepresentableIntent behaviour
After watching the What's new in App Intents session I'm attempting to create an intent conforming to URLRepresentableIntent. The video states that so long as my AppEntity conforms to URLRepresentableEntity I should not have to provide a perform method . My application will be launched automatically and passed the appropriate URL. This seems to work in that my application is launched and is passed a URL, but the URL is in the form: FeatureEntity/{id}. Am I missing something, or is there a trick that enables it to pass along the URL specified in the AppEntity itself? struct MyExampleIntent: OpenIntent, URLRepresentableIntent { static let title: LocalizedStringResource = Open Feature static var parameterSummary: some ParameterSummary { Summary(Open (.$target)) } @Parameter(title: My feature, description: The feature to open.) var target: FeatureEntity } struct FeatureEntity: AppEntity { // ... } extension FeatureEntity: URLRepresentableEntity { static var urlRepresentation: URLRepresentation { https://
2
0
1.1k
1w
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
Cannot Preview in this file. Simulator was shutdown during an update.
Hello, I am facing a recurring issue with Xcode iOS simulator (preview). I want to preview a SwiftUI for iOS in Xcode, but the Simulator app fails to boot up. I receive the following error in Xcode: Cannot Preview in this file. Simulator was shutdown during an update. I have tried the following: Completely uninstalling XCode and deleting all developer data, then reinstalling everthing again. Shutdown and restart Deleting all developer data, deleting XCode cache Reinstalling iOS Simulator runtimes and reconfiguration of simulators. Tested using different simulator and runtime versions. xcrun simctl --set previews delete al My reported issues: FB20987522 FB20485454 Thank you Best regards, Jens
5
0
338
2w
Transperent title bar changed to gray when refocus
Hello, I'm trying to create game in macos with transperent titlebar. The title bar t stay transperent when I click inside, but changed to gray when the window resize or get out of focus. How can I make it stay transperent all the time? I did all of this: window.styleMask.insert(.fullSizeContentView) window.titlebarAppearsTransparent = true window.titlebarSeparatorStyle = .none window.titleVisibility = .hidden window.isMovableByWindowBackground = true window.isOpaque = false window.backgroundColor = .black in the swiftUI view created zstack that start with: var body: some View { ZStack { Color.black.ignoresSafeArea() help please :) Thanks.
Topic: UI Frameworks SubTopic: General
2
0
164
2w
Pending Termination under Section 3.2(f) – Seeking Guidance on Additional Steps for App Review Board
Hello everyone, We are the developer of PhotoMagic – AI Photo Editor, and we would appreciate guidance from the community regarding a pending enforcement case currently under review by the App Review Board. Case Information Case Number: 102812414888 App ID: 6746860005 Notice Date: January 25, 2026 Current Status: Pending review by the App Review Board Reason cited: Section 3.2(f) of the Apple Developer Program License Agreement The notice stated that our app submissions were considered to have “repeatedly violated the App Review Guidelines in an attempt to evade the review process.” Background & Acknowledgement Upon receiving the notice, we immediately conducted a comprehensive internal audit. During this process, we identified that certain user-uploaded template content (for example, templates involving concepts such as “kiss” or “hug”) posed potential policy risks. We would like to clearly state that we did not intentionally hide or disguise content to evade App Review. However, we fully acknowledge tha
1
0
129
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
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
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
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
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