Learn Swift and iOS Development
Master iOS development through in-depth tutorials and comprehensive courses on Swift, SwiftUI, UIKit, Core Data, and more.
Master iOS development through in-depth tutorials and comprehensive courses on Swift, SwiftUI, UIKit, Core Data, and more.
Learn Swift and iOS development through comprehensive video guides
Showing 409 to 420 of 420 posts
If you need to create a single value from a sequence of elements, then the reduce(::) method is the API you are looking for. In this episode of Swift Fundamentals, we take a look at Swift's reduce(::) method. You learn about its syntax and when you shouldn't use it.
in Foundation
The data your application receives from a remote API may be base64 encoded. It is the task of your application to base64 decode it. In this episode, I show you how easy that is using Swift.
Generating a unique identifier is easy thanks to Foundation's UUID struct. In this episode of Swift Fundamentals, you learn how to create an identifier that is (almost) guaranteed to be unique.
In this episode of Swift Fundamentals, we look at string interpolation in Swift. You learn about the syntax, and we look at the benefits and drawbacks of string interpolation in your code.
in Swift
Many developers struggle with the concepts authentication and authorization. They are often used interchangeably. What is the difference between these concepts? While the difference is subtle, it is vitally important. Let's take a look at authentication first.
in Security
Scene-based applications come with a few challenges for developers, one of them being dependency injection. How do you inject a dependency, such as a view model, into the root view controller of the window? That is the question I answer in this episode.
in UIKit
What I love most about RxSwift is RxCocoa. RxCocoa defines a wide range of integrations with UIKit and AppKit. It is surprising that Apple's Combine framework lacks these integrations. The good news is that most of the integrations RxCocoa defines are easy to implement using Combine. In this episode, I show you how to observe the value of a UITextField instance using the Combine framework.
in Combine
Every Combine publisher defines two associated types, the Output type defines the type of elements the publisher can emit and the Failure type defines the type of errors the publisher can emit. The fact that a publisher is required to define an Output type and a Failure type is convenient, but it can sometimes be inconvenient. What do I mean by that? Take a look at the following example from Building a Modern Networking Layer in Swift.
in Combine
This episode of Combine Essentials zooms in on Combine's merge operator. As the name suggests, the merge operator merges two or more upstream publishers into a single publisher. Even though the merge operator isn't difficult to use, there are a few pitfalls to watch out for.
in Combine
Combine's filter and compactMap operators share a few similarities and it is possible to use them interchangeably in some scenarios. That said, there are a number of key differences we discuss in today's episode of Combine Essentials.
in Combine
The most common goal of students of my mentorship program is to release the app they have been working on for weeks, months, or even years. Is that you?
In this quick tip, I show you how to calculate the distance between two locations using the Core Location framework. Let's say you have two sets of coordinates and you want to calculate the distance between them. In this example, we use a tuple to store the latitude and the longitude of a set of coordinates.