Swift.
subject doesn’t throw errors (`Never`), you would need to specify both types: let counterSubject = CurrentValueSubject<Int, Never>(0) With Swift 5.6, you can use a type placeholder for the `Output` type, letting the compiler infer the type automatically: let counterSubject = CurrentValueSubject<_,