DevPrep

All topics › Combine

What is Combine and its basic entities?

Middle PRO

The essence

Combine is Apple's declarative framework (iOS 13) for working with streams of values over time: UI events, network responses, notifications, property changes. Instead of callbacks you describe a chain of transformations, and the framework manages subscription, delivery and completion.

The basic entities:

The rest of this answer, with code and interview follow-ups, is in the DevPrep app.

Read the full answer in DevPrep

Practice this before your interview

DevPrep turns these answers into one-minute challenges: what does this code print, find the bug, mock interviews. One challenge a day.

Get DevPrep on the App Store