Swift Package Manager - Integrating resources

Declaring resources Resources can be bundled with a Swift package and then be accessed in your code. We can distinguish two types of resources : common resources (e.g interface builder...

Combine - collect()

collect() is a powerful operator that enables us to receive all at once the outputs from a publisher. It collects all received elements, and emits a single array of the...

SwiftUI - Creating a custom @Environment

SwiftUI enables us to access common pieces of information throughout the app using @Environment objects avoiding the cumbersomeness of passing data through the views. There are many built-in environments such...

Combine - Single-valued publisher

While creating a custom operator out of Combine’s built-in ones in the Publisher extension is a useful (and quick!) technique to harmonize some common reactive behaviors, it is sometimes necessary...

Swift - @propertyWrapper with Publisher

Property wrappers are one of Swift’s major new features enabling us to attach some specific behavior each time a property gets accessed or mutated. It comes in very handy when...