HStack and VStack have their lazy counterparts. I assumed LazyHGrid and LazyVGrid would have their eager counterparts but unfortunately they don't.
I'd like to avoid the overhead associated with lazy loading in my grid, in the way that Apple suggests making that same decision on whether to use HStack and VStack's lazy-loading alternatives.
In my specific case I have a constant set of data that infrequently changes (~300 x ~20k images). I'm using AsyncImage to pull them from the network and the device is going nuts while scrolling reconstituting all the views.
I did try the open source URLImage (which works great!) but also all the image reloading makes the UI stutter and chug.
I did see open source component alternatives however once the Lazy grid views were released, these have been archived.
Post
Replies
Boosts
Views
Activity
I have an app targeting iPad 16.2 only, with an additional Mac (designed for iPad) destination. When I select this destination in Xcode 14.2, it builds however I receive the following error.
I'm not sure what it's referring to when it says "The system version is lower". What system? And how can I upgrade it? :)
Details
Unable To Install “<my bundle name>”
Domain: IDEInstallLocalMacService
Code: 16
Failure Reason: This application requires a newer version of macOS.
Recovery Suggestion: The system version is lower than the minimum OS version specified for bundle at /var/db/appinstalld/Library/Caches/com.apple.mobile.installd.staging/temp.pbDU4i/extracted/<my app name>.app. Have 15.7; need 16.2
User Info: {
DVTErrorCreationDateKey = "2023-01-09 16:42:44 +0000";
IDERunOperationFailingWorker = IDEInstallLocalMacWorker;
}
--
Analytics Event: com.apple.dt.IDERunOperationWorkerFinished : {
"device_model" = "MacBookPro18,2";
"device_osBuild" = "12.6.2 (21G320)";
"device_platform" = "com.apple.platform.macosx";
"launchSession_schemeCommand" = Run;
"launchSession_state" = 1;
"launchSession_targetArch" = arm64;
"operation_duration_ms" = 188;
"operation_errorCode" = 16;
"operation_errorDomain" = IDEInstallLocalMacService;
"operation_errorWorker" = IDEInstallLocalMacWorker;
"operation_name" = IDERunOperationWorkerGroup;
"param_consoleMode" = 0;
"param_debugger_attachToExtensions" = 0;
"param_debugger_attachToXPC" = 1;
"param_debugger_type" = 3;
"param_destination_isProxy" = 0;
"param_destination_platform" = "com.apple.platform.macosx";
"param_diag_MainThreadChecker_stopOnIssue" = 0;
"param_diag_MallocStackLogging_enableDuringAttach" = 0;
"param_diag_MallocStackLogging_enableForXPC" = 1;
"param_diag_allowLocationSimulation" = 1;
"param_diag_checker_tpc_enable" = 1;
"param_diag_gpu_frameCapture_enable" = 0;
"param_diag_gpu_shaderValidation_enable" = 0;
"param_diag_gpu_validation_enable" = 1;
"param_diag_memoryGraphOnResourceException" = 0;
"param_diag_queueDebugging_enable" = 1;
"param_diag_runtimeProfile_generate" = 0;
"param_diag_sanitizer_asan_enable" = 0;
"param_diag_sanitizer_tsan_enable" = 0;
"param_diag_sanitizer_tsan_stopOnIssue" = 0;
"param_diag_sanitizer_ubsan_stopOnIssue" = 0;
"param_diag_showNonLocalizedStrings" = 0;
"param_diag_viewDebugging_enabled" = 1;
"param_diag_viewDebugging_insertDylibOnLaunch" = 1;
"param_install_style" = 0;
"param_launcher_UID" = 2;
"param_launcher_allowDeviceSensorReplayData" = 0;
"param_launcher_kind" = 0;
"param_launcher_style" = 99;
"param_launcher_substyle" = 8192;
"param_runnable_appExtensionHostRunMode" = 0;
"param_runnable_productType" = "com.apple.product-type.application";
"param_runnable_type" = 2;
"param_testing_launchedForTesting" = 0;
"param_testing_suppressSimulatorApp" = 0;
"param_testing_usingCLI" = 0;
"sdk_canonicalName" = "iphoneos16.2";
"sdk_osVersion" = "16.2";
"sdk_variant" = iphoneos;
}
--
System Information
macOS Version 12.6.2 (Build 21G320)
Xcode 14.2 (21534) (Build 14C18)
Timestamp: 2023-01-09T08:42:44-08:00
While I'm keen on being on the latest version of macOS, I'm having trouble meeting the requirement that my app can run on a version of macOS that doesn't exist :)
I'm using Xcode 15.2 (15C500b), targeting iOS 17.2.
I've elected to have the App Store choose the minimum version for Catalyst. I've also tried selecting a version.
ITMS-90899: Apple silicon Mac support issue - The app is not compatible with the provided minimum macOS version of 14.2. It can run on macOS 14.4 or later. Please specify an LSMinimumSystemVersion value of 14.4 or later in a new build, or select a compatible version in App Store Connect. For details, visit: ...
Is there something I could be doing wrong to prompt this behaviour?
My iOS (iPhone/iPad/Mac Catalyst) app has a relatively complex authentication flow, primarily required due to it being an API client. Several of my views have .task modifiers that begin executing code when the views are created.
After moving to iOS 18 and Xcode 16, when running in the Simulator, I began noticing my workflow was breaking as views were being created out of sequence... but not by me 🤯
Here is an example stack when I place a breakpoint inside of this view's .task.
From my logging (and this stack) I can verify I am not creating this view.
This view has no preview associated with it, and there are no previews up the view hierarchy from it either.
This happens in the Simulator only
The only clue I have to go on is this line of text which is present at the top of what looks like ASM when I click on the (5) line in the stack above.
SwiftUI`(1) await resume partial function for dispatch thunk of static SwiftUI.PreviewModifier.makeSharedContext() async throws -> τ_0_0.Context:
If this (or any hierarchical view) used Previews, I'd remove them to see if it had an effect, but they don't! I'm at a loss on what to do here...