Problem Solving with Combine Swift

Arlind Aliu
Jul 10 · 7 min read

Introduction

Getting in Reactive Mindset

Button Taps Over Time

Combine Swift Essentials

1. Publishers and Subscribers

OUTPUT:
Combine Swift
OUTPUT:
Combine Swift
finished
subscriber.cancel()

2. Subjects

3. Operators

OUTPUT:
10
20
30
OUTPUT: 
Munich is a city in europe
Berlin is a city in europe
Milano is a city in europe
Rome is a city in europe
Output:
1
3
6
10
15

4. Schedulers

Solving Practical Problems

Notification Centre Publishers

Chaining Asynchronous Calls

Performing Multiple Asynchronous Calls

Evaluating Solutions

Execution Time In Seconds
Heap Allocations in Kilobytes

In Conclusion

Flawless iOS

🍏 Community around iOS development, mobile design, and marketing

Arlind Aliu

Written by

iOS Developer. I spend half of my life coding, the other half I waste.

Flawless iOS

🍏 Community around iOS development, mobile design, and marketing