Why use the Combine framework? Example uses for UIKit and SwiftUI - the difference to async await

Опубликовано: 31 Октябрь 2024
на канале: Karin Prater
3,151
126

Why would you want to use the Combine framework? In this video, I want to show you different use cases for Combine. These include SwiftUI, ARKit and SharePlay.
Combine can be used as a communication pattern similar to delegates, closures and target/action. This is especially interesting if you plan to use the Coordinator pattern with MVVM in UIKit.
If you want to improve the performance of your app, Combine has tools like debounce, throttle and removeDuplicates.

Overview
00:00 Introduction
02:38 how stable is Combine?
05:24 APIs that use Combine
11:11 Using Combine as a Communication pattern
18:55 declarative programming
22:42 performance optimisation
24:41 processing values and async/ await
29:32 wrap up

The sample project for SharePlay / GroupActivity can be found here:
https://developer.apple.com/documenta...

If you liked what you learned and you want to see more, check out one of my courses!
👨‍💻 my SwiftUI course https://school.swiftyplace.com/course...
👩🏻‍💻 Combine course https://school.swiftyplace.com/course...


#CombineFramework #SwiftUI #UIKit