let objectWillChange = PassthroughSubect<TimerCounter,Never>()
and the
objectWillChange.send(self)
in the TimeCounter class are no longer necessary.
Simply mark counter with the propertyWrapper @Published
@Published var counter = 0
let objectWillChange = PassthroughSubect<TimerCounter,Never>()
and the
objectWillChange.send(self)
in the TimeCounter class are no longer necessary.
Simply mark counter with the propertyWrapper @Published
@Published var counter = 0
thanks Stewart! much neater
I’ve updated this bit for the next update