• Async await: Update SwiftUI view

    In this post, we are going to showcase some common examples of working with async await and update a SwiftUI view. Let’s consider a scenario where we need to perform asynchronous work when the view appears, such as loading an image. After that, we will update the SwiftUI view. .task modifier For this purpose, we…

  • Async await in Swift

    We can use async await in Swift for asynchronous programming. This language feature was introduced in Swift 5.5 and allows developers to write asynchronous code in a more synchronous-like way. The main characteristics of async/await include: Syntax Now let’s talk about the syntax. To declare a function that will perform some asynchronous work, we add…

  • iOS App with Clean Architecture – Example

    In our previous post, we defined that we would structure our project by combining a vertical split by features and a horizontal split of each feature by layers, following the clean architecture approach. In this example we will create an iOS App using Clean Architecture. To illustrate this, we are creating an example application that…

  • iOS App with Clean Architecture

    Making important decisions about the architecture and structure of a new project is crucial. It’s advisable to adopt a consistent approach, rather than allowing each screen or feature to be developed independently according to the developer’s whim. Today we are going to explore the theory about Clean Architecture, and in the next article we will…

  • 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 to do is introduce a method called callAsFunction in our class or struct. Let’s see an example: Let’s say that we need to implement some…