asyncrenderer专题

SwiftUI 在 iOS 17 上发生“诡异”崩溃的解决:AsyncRenderer layout engine performed from background thread

问题现象 在系统升级到 iOS 17 后,原本正常的 SwiftUI 代码在运行时突然发生崩溃,提示如下信息: com.apple.SwiftUI.AsyncRenderer (17): “Modifications to the layout engine must not be performed from a background thread after it has been