r/iOSProgramming • • Oct 12 '22

Discussion Is Swift Combine dead?

https://www.remotion.com/blog/is-swift-combine-dead
2 Upvotes

13 comments sorted by

6

u/Zalenka Oct 12 '22

I like it. SwiftUi kinda relies on it.

4

u/ate50eggs Oct 12 '22

Yah, this article title is super click baity.

5

u/jembytrevize1234 Oct 12 '22

They all but say it is in the Async Algorithms blog post https://swift.org/blog/swift-async-algorithms/

We can now write asynchronous code that is split into smaller pieces and reads from top-to-bottom instead of as a series of chained transforms.

We’re excited about the possibilities that async/await and AsyncSequence bring to the language. We believe this package will be a great place to explore future development and evolution of higher-level APIs in this space.

3

u/tekkub Oct 13 '22

I’ve been using the AsyncSequence stuff they put into combine and it’s so nice it makes me want to not use combine and just do pure async/await.

2

u/[deleted] Oct 12 '22

I personally stopped using it. It's more trouble than its worth.

3

u/haribou Oct 12 '22

So how do you do things like having more than one subscriber to a stream of data?

11

u/[deleted] Oct 12 '22

I use a different architecture. I've never found value in the whole subscriber/publisher pattern. It makes debugging a nightmare and leads to sloppy code.

9

u/capmilk Objective-C / Swift Oct 12 '22

This needs to be said more often. Debugging Combine code is a nightmare.

8

u/ate50eggs Oct 12 '22

What is this different architecture that you speak of out of curiosity?

1

u/Awric Oct 14 '22

I have yet to dig deep into combine

What were the most common pitfalls to look out for when committing to the pub sub pattern? What use case does it fit the most, and why wasn’t it ideal for yours?

4

u/Confident_Gear_2704 Oct 12 '22

It is for me, it felt like going back to the days of arc.

I do use async/await.

4

u/ate50eggs Oct 13 '22

Seems like a lot of people are saying they use Swift Concurrency now instead of Combine which is confusing to me because they solve different problems.