我试图在macOS上实现一个遵循系统风格的表。我猜想这是一个SwiftUI Bug:
**Could not cast value of type 'SwiftUI.ListCoreCellHost' (0x7fff87be7580) to 'SwiftUI.ListCoreHeaderHost' (0x7fff87be7580) to 'SwiftUI.ListCoreHeaderHost' (0x7fff8
我正在使用SwiftUI为iOS,iPadOS和macOS建立一个应用程序,我需要一个透明的背景TextEditor。这个问题以前也有人问过,我在iOS/iPadOS (Change background color of TextEditor in SwiftUI)上找到了一个很好的答案,但在macOS上却没有。#else