It looks like onReceive may be what you need. Instead of: .onChange(of: model.counter, perform: someLogic) .onAppear { someLogic(counter: model.counter) }.
確定! 回上一頁