So I had something like this code
struct MyComponent: View {
@Binding var isShowing: Bool
var body: some View {
Text("sample")
.offset("")
.offset(y: isShowing ? -100: 0) //values just for example
.animation(.easeInOut, value: isShowing)
}
}
I wanted to add a didShow callback whenever isShowing is being true. The problem I got is this code
@Binding var isShowing: Bool {
didSet {
didShow()
}
}
only fires when isShowing is false.
I was stucked here for days.
@Bindingproperty wrapper does not calldidSet