是否有任何方法在行动表中没有标题部分?SwiftUI代码中的操作表定义如下: /// Creates an action sheet with the provided buttons= nil, buttons: [ActionSheet.Button] = [.cancel()])
/// A button representing an operation
我有一个包含5个元素和一个取消按钮的动作单。我正在尝试将取消按钮设置为红色,但它不起作用。我见过这个SwiftUIActionSheet different color for each action。破坏性按钮样式使其他选项卡变为红色,但不知道如何使取消选项卡变为红色。我已经更新了我的取消选项卡如下,但颜色仍然是蓝色,任何建议都会很好。.cancel(Text("Cancel").foreg
如果我像这样做一个按钮: self.showActionSheet = true Text("Click") ActionSheet(title: Text("This is a test"))它起作用了!但是如果我把它放在NavigationView中,bug就会出现!当我单击Cancel时,ActionSh