Home > AI > IOS > Combine >

count()

Example (Apple Official)

let numbers = (0...10)
let cancellable = numbers.publisher
    .count()
    .sink { print("\($0)") }

Leave a Reply