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 397 to 408 of 420 posts
Adding a URL scheme to your app requires only a few steps, but there are a few details to keep in mind. How your app handles deep links depends on a few factors. Does your app use UIKit or SwiftUI for its user interface? Is your app scene-based or not? We cover each scenario in this tutorial.
in Fundamentals
Apple introduced Developer Mode in iOS 16, iPadOS 16, and watchOS 9 to further protect the user's privacy and security. As a developer, you need to enable Developer Mode on your device (without Xcode) if you want to run your app on your device. This is easy to do.
in Xcode
Most developers run into the Xcode Failed to Prepare Device for Development error at some point in their career. It can be frustrating because the error isn't very helpful. In this tutorial, I share four possible causes and provide some tips to resolve the problem.
in Xcode
I recently came across a question from a developer that inspired me to write this tutorial. The developer ran into the following compiler error. Argument type String expected to be an instance of a class or class-constrained type. For someone new to Swift, this error can be quite challenging to resolve. Let's reproduce the error and track down the root cause. Once we understand the root cause, the solution is surprisingly simple.
in Fundamentals
Optionals are an integral aspect of Swift. Optional types are used to represent the absence or presence of a value. In other words, an optional type can hold either a value or nil, which indicates that a value is absent. When you declare a variable as optional, you tell the Swift compiler that the variable may not always have a value.
in Fundamentals
Sorting arrays is a common task in Swift. In this episode, you learn a handful of patterns to sort arrays, including sorting arrays of objects and sorting arrays by property. We use several functions that are defined in by Swift's Standard Library, such as sorted and sort. Are you ready?
in Fundamentals
The compiler can at times throw confusing errors at you and "Property wrapper cannot be applied to a computed property" is one such error. In this episode, you learn what the error means, why you are running into it, and how you can resolve it.
in SwiftUI
When should you use StateObject over ObservedObject and vice versa? That is the question we answer in this tutorial. Both property wrappers play an important role in SwiftUI data flow, but there is a subtle yet elementary difference that sets them apart.
in SwiftUI
Strings are an integral part of almost every programming language, and Swift is no different. At its core, a string is a sequence of characters that can represent text. From user interfaces to data processing, strings are everywhere in software development. Having a deep understanding of strings is therefore foundational.
in Foundation
A lot has changed with the release of Swift 3. The good news is that Swift got better by a lot. The not so good news is that some of your Swift 2 code needs some tweaking. In this post, I show you an example of the type of errors you can expect and how easy it is to fix them.
in Swift
In this post, I'd like to answer a few common questions developers have about Swift Package Manager (often abbreviated as SPM or SwiftPM)
in Swift
In Swift, understanding memory management is essential for your app's performance and to avoid potential pitfalls, such as memory leaks. References are strong by default, but, to avoid retain cycles, you sometimes need to make use of weak references using the weak keyword.
in Patterns