Xcode 12.5.1iOS 14.5 .sheet()不能挂载在toolbar里面的button上面,移到外面去。 参考详情 真的恶心,遇到了也不会报错,我的dismiss前面正好是新增coreData数据,不新增就不会失效,新增了就会有问题