SwiftUI 在 iOS 17 上发生“诡异”崩溃的解决:AsyncRenderer layout engine performed from background thread
问题现象在系统升级到iOS17后,原本正常的SwiftUI代码在运行时突然发生崩溃,提示如下信息:com.apple.SwiftUI.AsyncRenderer(17):“Modificationstothelayoutenginemustnotbeperformedfromabackgroundthreadafterithasbeenaccessedfromthemainthread