A good alternative to get old values is to use 'willSet'
@State private var isSubscribed = false {
willSet {
print("oldValue: \(isSubscribed)")
}
}
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: