Optional Binding in Swift 5.7: A Shorter Version of if let
Other than all the new features of SwiftUI in iOS 16, Apple also announced Swift 5.7 which will come along with the release of Xcode 14. Let’s check out one minor but welcome change in Swift 5.7. Swift has the concept of...
What’s New in Xcode 12 and Swift 5.3
WWDC 2020 was finished just a few days ago under unprecedented conditions for first time. Virtually, all developers around the globe had the chance for a seat in the front row, being able to learn about all new features and...
Using Swift Protocols to Manage App Configuration
Hello and welcome to a new tutorial! One of the most common concepts met and used in Swift by all developers is protocols, and I don’t think there’s even one developer who doesn’t know about them. Protocols can...
Protocol Oriented Programming in Swift: Is it better than Object Oriented Programming?
We’re going to talk in-depth about protocol-oriented programming (POP) using Swift 4 in this article. This post is the second and final article in a two part series. If you haven’t read the introductory article,...
Protocol Oriented Programming in Swift: An Introduction
The greatest enemy of software developers is complexity, so when I hear about new technologies promising to help me manage chaos, I listen. One of the “hot” methodologies generating much attention recently (at least...
What’s New in Swift 4 by Example
Apple announced Swift 4 as part of Xcode 9 at WWDC a few weeks ago. Although still in beta during the summer until its final release in September, this is the first version of the language that doesn’t break your code. It brings...
A Beginner’s Guide to Protocols and Protocol Extensions in Swift
Welcome to the tutorial on protocols and protocol oriented programming in Swift! In this tutorial, we’re going to talk about what protocols are and how you can use them in conjunction with protocol oriented programming. We’ll...
Mastering Swift: Enumerations, Closures, Generics, Protocols and High Order Functions
Welcome to the “Mastering Swift” tutorial series! This tutorial is a bit different from the ones usually featured on AppCoda, because instead of teaching you about the iOS APIs or a specific iOS topic, this tutorial...
Building Your First Web App in Swift Using Vapor
In WWDC 2015, Apple announced that Swift would be open source. Shortly after that, in December 2015, Swift’s codebase was public on GitHub. Open sourcing the Swift codebase introduces developers to a multitude of...
Creating Gradient Colors Using CAGradientLayer
Every developer always uses color combinations along with images to produce a good-looking result when creating an app, trying always to achieve the best user experience possible. Sometimes, however, something more might be...