我注意到在我的SwiftUI应用程序中设置SwiftUI时,.alert和.confirmationDialog修饰符不使用colorScheme。此外,启动屏幕也不使用colorScheme。启动屏幕仍然使用系统默认值,不确定如何在没有启动屏幕的SwiftUI中解决这一问题。此外,代码变得非常丑陋,范围更广。
guard let scene = scenes.first as?
使用后如何修改视图?例如: var body: some View { // Code to move button's position. self.offset(x:y:) doesn't work, Xcode says 'result of call to offset is unused' Text("How to I alter the colour of this text?") // Change colour somewhere el