在SwiftUI的Preview中使用@State会导致无法实时更新视图。解决方案是使用@StateObject或@ObservedObject,因为它们可以与PreviewProvider一起使用。
確定! 回上一頁