Switch Statements in Swift: Selecting Among Multiple Options

Switch statements compare specific values against different cases and execute the block of code associated with the first matching case. You can achieve the same result using an if statement with multiple else clauses, but switch statements are easier to read and understand at a glance.

This article covers the most common use cases of switch statements. There are other, more advanced features of switch statements that I will talk about in future articles.

Hello, World! Your First Swift Program

Hello, World! Your First Swift Program

Learning how to program is not an easy task. But it is straightforward to get started with it by following a very simple Swift tutorial.

The very first program everyone writes is called Hello World. It teaches you the basics of creating and running a program in any language.

Effortless Concurrency in Swift with Async/Await

Most modern iOS apps need to run code asynchronously. 

Asynchronous code can be suspended and resumed later, allowing your app to keep its UI responsive while working on long tasks, like performing network requests to a REST API. 

You often run asynchronous code in parallel to make the best use of resources like the cores on your device’s CPU or internet bandwidth.

In this article, we will see how to run asynchronous functions in Swift and iOS apps using async/await.

Powerful Advanced Swift Techniques for Complex Apps

Top image

Any iOS developer, at some point, feels the need to make the step from basic to advanced concepts.

You can get a lot of mileage from the fundamentals of Swift and iOS development.

But working on complex projects demands a new set of tools if you want your code to be reusable and remain at the same time maintainable and testable.

If you are looking to expand your Swift knowledge into more advanced topics and understand why you would need such concepts, this article is for you.

Become an iOS Developer in 2022: The Ultimate Guide

The mobile market is exploding, and iOS developers are in high demand.

The talent shortage keeps driving salaries higher and higher, even for entry-level positions. Software development is also one of the lucky jobs that you can do remotely. It’s understandable then that more and more people want to become iOS developers.

Money and freedom are great, of course, but they are not everything. Many of us make iOS apps to create something we are proud of and make a difference in many people’s lives.

Becoming an iOS developer takes some effort, though. So it’s crucial to focus on the right things and not waste time on useless activities. That’s why I wrote this detailed, step-by-step guide.

Network Requests and REST APIs in iOS with Swift (Protocol-Oriented Approach)

Networking is a requirement for most modern iOS apps.

Networked apps usually interface with a remote web service that provides data. And often, such a web service is a REST API that returns data in JSON format.

Writing the networking layer of an iOS app, though, is not a simple task. When making asynchronous network calls, you need to combine several features of Swift, SwiftUI, and the Foundation framework. Moreover, many parts of your app’s architecture need to interact, making the task more complicated than it might seem at first.