I have been debugging a similar issue (UI become out of sync) with my app, which involves no array.
With additional debugging code, I found out that the SwiftUI attempts to update the UI when some values (in @ObservedObject) change, but the new value is not yet available at that time.
This is probably associated with a tricky update mechanism in SwiftUI, which uses Combine, which sends the notification before the value change.
https://developer.apple.com/forums/thread/128096
My code happened to have the following code and removing this line has solved this issue.
@Environment(\.presentationMode) var presentationMode
Post
Replies
Boosts
Views
Activity
Thank you for running this code on your machine, BabyJ. This helps a lot!
After further testing, I found out that this problem happens only under Xcode 12.2 beta 2, not on Xcode 12.0.
This seems like a bug on Xcode 12.2 beta 2.
I see a very similar issue with VNDetectHumanHandPoseRequest.
https://developer.apple.com/forums/thread/665430
Here is the additional info. I am running Apple Configurator 2, Version 2.13.1 (5A35): The document says "2.13 beta 1", but it is not available at developer.apple.com
The version I am trying to restore to is macOS Big Sur 11 beta 9
from https://developer.apple.com/download/universal/ (UniversalMac11.020A5384c_Restore.ipsw)
3. When I connect DTK (in DFU mode) to my MacBook, a popup appears with following message:
Apple Configurator 2 would like to update Device Support for currently connected devices.
When I select "Install", it fails with the following message.
Installation failed: Can't install the software because it is not currently available for the Software Update server.
4. I drag&dropped the .ipsw file, it starts restoring the device, but eventually fails with the following message:
The System cannot be restored on this device.
The operation couldn’t be completed. (AMRestoreErrorDomain error 10 - Failed to handle message type StatusMsg) [AMRestoreErrorDomain – 0xA (10)]