April 8, 2023 Daniel Gallego Foundation Call instances as a functions Today we are going to talk about a small addition to the Swift language which introduces the ability to call instances of classes and structs as functions. All we need… Read More
February 12, 2023 Daniel Gallego Combine Combine: key operators to know Combine contains a long list of operators which are great to know. While all of them are useful and can help you, I am going to focus on 4 operators… Read More
January 22, 2023 Daniel Gallego Combine 1 Combine basics: types of Publishers Just A publisher that emits an output to each subscriber just once and then finishes. Generic only over the output since can not fail. let justPublisher = Just<String>("one value") //Just.init(<#T##output:… Read More
January 15, 2023 Daniel Gallego Foundation Property Wrappers What is a property wrapper? We can think of property wrappers as a way to decorate variables and function parameters. We can use it to run additional code every time… Read More
January 11, 2023 Daniel Gallego Foundation KeyPath We can use key paths to have a reference to a property from an object. For example, in this simple case, we can pass to a method an object and… Read More
January 8, 2023 Daniel Gallego Foundation Custom operators We can create our custom operators and combine them. It is not a common practice but can be useful in some cases. Let's start by creating an operator similar to… Read More
January 4, 2023 Daniel Gallego SwiftUI Modifiers in SwiftUI Modifiers in SwiftUI allows us to describe a customization for a view. We can use it directly to wrap a view or we can create an extension, which will apply… Read More