Search results for

SwiftUI List performance

50,597 results found

Post

Replies

Boosts

Views

Activity

Reply to What should be enabled for Enhanced Security?
[quote='876600022, anosidium, /thread/815819?answerId=876600022#876600022, /profile/anosidium'] You advised that I should enable all the settings. [/quote] Well, yes, if you read that one sentence in isolation. However, I made it clear that one specific setting, Enable Soft Mode for Memory Tagging, reduces security, so if you goal is security then enabling that is probably not a good choice (-: [quote='876600022, anosidium, /thread/815819?answerId=876600022#876600022, /profile/anosidium'] I am therefore inclined not to enable it. [/quote] Or you could profile your app and see if it makes a difference in pratice. That’s generally the best way to approach performance trade-offs. [quote='876600022, anosidium, /thread/815819?answerId=876600022#876600022, /profile/anosidium'] I am not entirely sure what is meant by logging in [Soft Mode] [/quote] Quoting Enabling enhanced security for your app: This entitlement makes hardware memory tagging operate in soft mode, where the system produces a simulated crash
Topic: Privacy & Security SubTopic: General Tags:
1d
UITabBarController crashes when editing the items
I'm using one UITabBarController which leads to 6 NavigationController. Therefore the user will get 4 icons displayed and one icon with three points to see the rest of the Navigation Controller. If the user now tries to edit the list and moves one item from the hidden area towards the TabBar at the bottom, the App crashes with the error: Exception NSException * Can't add self as subview 0x0000600000d16040 I can see this effect at least on both my apps. If the same compilation is run on a older iOS version, there is no crash. Is there anything I have to take care of the configuration of the TabBar, when it comes to iOS26?
Topic: UI Frameworks SubTopic: UIKit
18
0
708
1d
App Rejected (Guideline 5.0 – Sanctions) Due to Domain Found in Binary, Not Used by App
Hello everyone, Our app was recently rejected under Guideline 5.0 – Legal (U.S. Sanctions Compliance). Apple review reported that the binary contains the following domain: https://lib.eshia.ir However, after extensive investigation: • The app does NOT connect to this domain • The app does NOT provide services to sanctioned regions • The domain does NOT exist in our source code, API calls, or UI • Network logs confirm no outgoing requests to this host We suspect the reference is coming from a bundled third-party dependency dataset (possibly a public suffix / domain validation / fraud detection list embedded in a framework). We already: Extracted IPA Scanned all source files Ran strings on the main binary Checked networking layer But we still cannot identify which framework contains this entry. Questions: Has anyone faced a sanctions rejection due to a domain inside a compiled SDK dataset? Is Apple expecting removal of the exact string from the binary even if unused? How do you typically identify the s
1
0
45
1d
Guidance needed for Guideline 4.2 Rejection - Specialized Regional Car Marketplace App
Hello everyone, I am seeking advice regarding a persistent Guideline 4.2 (Minimum Functionality) rejection for my app, Naxçıvan Avto. My app is a specialized automotive marketplace designed specifically for the Nakhchivan region. The Issue: The App Review team has stated that the app's usefulness is limited by minimal functionality and lacks sufficient app-like features. However, the app is built strictly around the services provided by our company and the specific requirements of our local automotive industry. Current Functionality: • Dynamic Regional Marketplace: Real-time car and license plate listings with detailed technical data (VIN codes, mileage, engine specs). • Localized Financial Tools: Filters and categorization for Cash (Nağd), Credit, and Barter options, which are essential for our regional business model. • Real-time Push Ecosystem: Integration with Supabase Edge Functions to notify users about new listings and approval statuses. • Native Tooling: Includes a financial calculat
1
0
52
1d
Disable Local Network Access permission check
I'm using a Mac Studio in a homelab context and use Homebrew to manage the installed services. The services include things that access the local network, for example Prometheus which monitors some other servers, a reverse proxy which fronts other web services on the network, and a DNS server which can use another as upstream. Local Network Access permissions make it impossible to reliably perform unattended updates of services because an updated binary requires a GUI login to grant local network permissions (again). I use brew services to manage the services as launchd agents, i.e. they run in a non-root GUI context. I know that I can also use sudo brew services which instead installs the services as launchd daemons, but running services as root has negative security implication and generally doesn't look like a good idea to me. If only there was a way to disable local network access checks altogether…
11
0
356
1d
Reply to Button in ToolbarItem is not completely tapable on iOS 26
Thank you for sharing the post and the partial code. I suggest posting the code starting from the Toolbar instead of providing only a ToolbarItem. Hope other SwiftUI gurus here can jump into this thread as my SwiftUI skills are not as good as others for sure!! Looking at your item it seems like you are setting the frame to 20x20? I think by default in SwiftUI only registers taps within the bounds of its content. Taps on the surrounding padding or button area are ignored. To ensure taps anywhere within the trigger the action, we can use a to expand the tappable area, see your frame? The modifier ensures that taps anywhere within the defined shape are recognized. // Removing the Toolbar too :-) ToolbarItem(placement: .navigationBarTrailing) { // guessing on toggleBookmark :-) Button(action: toggleBookmark) { ZStack { Circle() .foregroundColor(.clear) .frame(width: 54, height: 54) // Adjust size as needed Image(systemName: isBookmarked ? bookmark.fill : bookmark) .resizable() .aspectRa
Topic: UI Frameworks SubTopic: SwiftUI
1d
Reply to What should be enabled for Enhanced Security?
Thanks @DTS Engineer, I have already read that documentation. You advised that I should enable all the settings. However, I noticed that for Memory Tag Pure Data, the description states that “it may incur a performance overhead”. I am therefore inclined not to enable it. Regarding Enable Soft Mode for Memory Tagging, the description states that “memory tagging faults will not crash and will be logged instead”. I am inclined to leave this disabled, as I would prefer the application to crash so that I can receive a crash report and potentially fix the issue. I am not entirely sure what is meant by logging in this context, would this appear in the Xcode console when running in Debug mode? As you are knowledgeable about AppKit and Mac computers, may I ask if you would mind looking at my other post about StoreKit 2? I am at my wits’ end, as I would like to ship the Cocoa app using the API but cannot because it is not behaving as expected. I am tempted to submit a code-level support request for this.
Topic: Privacy & Security SubTopic: General Tags:
1d
Why do I feel like my growth as an iOS developer has slowed down
I have 9 plus years of iOS experience starting with Objective C and moving to Swift, but after 4 years in my current company with little salary growth, I am struggling to find new opportunities in a highly competitive market with fewer openings and broader skill expectations. I am unsure about the long term career path for mobile developers, concerned about compensation growth and lacking SwiftUI experience, and would appreciate guidance on what additional skills to learn to stand out and secure better opportunities.
1
0
33
2d
dropDestination does not work inside List
I've discovered an issue with using iOS 16's Transferable drag-and-drop APIs for SwiftUI. The dropDestination modifier does not work when applied to a subview of a List. This code below will not work, unless you replace the List with a VStack or any other container (which, of course, removes all list-specific rendering). The draggable modifier will still work and the item will drag, but the dropDestination view won't react to it and neither closure will be called. struct MyView: View { var body: some View { List { Section { Text(drag this title) .font(.largeTitle) .draggable(a title) } Section { Color.pink .frame(width: 400, height: 400) .dropDestination(for: String.self) { receivedTitles, location in true } isTargeted: { print($0) } } } } } Has anyone encountered this bug and perhaps found a workaround?
9
0
3.6k
2d
Reply to Is calling different SBApplication objects from different threads bad?
That's interesting about the difference between NSOperation and NSThread as far as Mach ports go. I watched the # ports in Activity Monitor as I ran a job, and it certainly doesn't climb as each job runs. It goes from initially in the 300s to the low 500s right when the job starts, and stays around there, even after the job ends, and then I run the same job 2 or 3 more times without quitting. Well, that's the joy of Mach port leaks... you never REALLY know what you'll get. So, as some broader background here, the actual issue here isn't really about the thread API itself- ultimately, both APIs are using pthreads and the special pthread GCD uses aren't really different than standard pthreads. The real issue here is that you don't actually own the thread and the assumptions AppleEvents/ScriptingBridge were built around. Both of those APIs predate GCD (by many, many years) and are built around the assumption that they'll be used on a long-running thread that's running its own runloop, as that was basically THE p
2d
Reply to Sleep/Lock despite UIApplication.shared.isIdleTimerDisabled
Thanks for this awesome post. Yes, low power will trigger the device to go night night if possible. This is a great post for other developers to provide tips and ticks how to keep the device awake on a recording session. https://developer.apple.com/documentation/uikit/uiapplication/isidletimerdisabled Your approach of setting is indeed the standard way to achieve this. However, certain power management features, like Adaptive Power Mode, can override these settings, as you've observed. Ensure that you have an active configured while recording. This typically helps in signaling to the system that media capture is in progress, which should naturally prevent the device from sleeping. Unfortunately, iOS doesn't provide public APIs to directly detect Adaptive Power Mode specifically. However, you can check for Low Power Mode . While this doesn't exactly map to Adaptive Power Mode, it can still be useful for alerting users. Since detecting Adaptive Power Mode isn't directly possible, consider displaying a message w
Topic: UI Frameworks SubTopic: UIKit Tags:
2d
Zoom navigation transitions for tabViewBottomAccessory are not working in SwiftUI with ObservableObject or Observable
The zoom navigation transition with matchedTransitionSource in tabViewBottomAccessory does not work when a Published var in an ObservableObjector Observable gets changed. Here is an minimal reproducible example with ObservableObject: import SwiftUI import Combine private final class ViewModel: ObservableObject { @Published var isPresented = false } struct ContentView: View { @Namespace private var namespace @StateObject private var viewModel = ViewModel() // @State private var isPresented = false var body: some View { TabView { Button { viewModel.isPresented = true } label: { Text(Start) } .tabItem { Image(systemName: house) Text(Home) } Text(Search) .tabItem { Image(systemName: magnifyingglass) Text(Search) } Text(Profile) .tabItem { Image(systemName: person) Text(Profile) } } .sheet(isPresented: $viewModel.isPresented) { Text(Sheet) .presentationDragIndicator(.visible) .navigationTransition(.zoom(sourceID: tabViewBottomAccessoryTransition, in: namespace)) } .tabViewBottomAccessory { Button { viewMo
5
0
300
2d