Persistency, animation
class Book: ObservableObject { @AppStorage("page") var page = 1 // Persisted @Published var title = "Great Expectations" // Not persisted }
someView .animation(.spring(), value: showDetail)
Button("Change") { withAnimation { showDetail.toggle() } }