When user triggers a sheet of a view, it's quite easy to deal with its confirmation action. However, how can I deal with the cancellation action, which means when user taps the cancel button, what they edits can re-become its original version ( I am using SwiftData)?
Post
Replies
Boosts
Views
Activity
What's the difference between @State private var and @State var? And when to use the former and when to use the latter?
How to apply Swift Charts, for instance, barmark, without x and y axes and labels?