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.
Discover the newest tutorials on Swift and iOS development
Discover the newest tutorials on Swift and iOS development
Showing 601 to 612 of 716 posts
In this tutorial, you learn how to add a free trial to a subscription. A free trial is nothing more than an introductory offer you define in App Store Connect. The type of the introductory offer is Free. Let's look at the steps you need to take to add a free trial to a subscription.
Xcode ships with a powerful debugger. It's power comes from LLDB, the debugger of the LLVM project. In this tutorial, I want to share a tip few developers know about. Although I have been using Xcode for more than a decade, I only discovered it recently.
in Xcode
What is the difference between a unary, binary, and ternary operator? Someone might ask you this question during your next job interview. In this tutorial, you learn about unary, binary, and ternary operators, and I show you a few examples. Let's start with unary operators.
in Fundamentals
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
In this tutorial, we take a close look at one of the key methods of the UIApplicationDelegate protocol, application(_:didFinishLaunchingWithOptions:). As the name suggests, this method is called when your app finish launching. It is an ideal moment to set up your app and prepare it for the user.
in Cocoa
In today's tutorial, you learn how to convert an array to a string in Swift. The Foundation framework defines a few APIs we can use. Which API you use largely depends on the type of the elements of the array. Let's get started.
in Fundamentals
In this tutorial, we take a look at three APIs to make a PUT or a POST request in Swift, (1) a completion handler, (2) Swift concurrency, and (3) a reactive approach using the Combine framework.
in Networking
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