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 661 to 672 of 716 posts
You need to understand what a deployment target is if you plan to develop for iOS (and iPadOS), tvOS, macOS, or watchOS. In this episode, you learn everything you need to know about deployment targets, how to set a target's deployment target in Xcode, and when it is appropriate to change the minimum deployment target.
in Cocoa
An array in Swift can contain any type of data, values types as well as reference types. The type of data an array stores can sometimes be quite complex, though. In this episode, I show you how to store dictionaries in an array and I show you why an array of dictionaries is usually not what you need or even want.
in Swift
There are plenty of third-party libraries you can use to perform HTTP requests in Swift, but I always default to Foundation's URLSession API. It is a first-party API and easy to use. The fewer dependencies a project has, the better. Right? In this tutorial, you learn how easy it is to perform an HTTP request in Swift using the URLSession API. I show you how to fetch a remote image and JSON data.
in Networking
In Swift, a dictionary is nothing more than a collection of key-value pairs. In this post, I show you how to check if a dictionary contains a given key. Fire up Xcode and create a playground if you want to follow along with me.
Swift's Array type is powerful and flexible. In this post, I show you a simple solution to find an object in an array. Fire up Xcode and create a playground if you want to follow along. Clear the contents of the playground and add an import statement for Foundation.
Developers new to Swift are often confused by the programming language. In this post, I answer a handful of common questions about Swift for people new to Apple's programming language.
in Swift
Developers new to Apple's platforms are often confused by Xcode. In this post, I answer a handful of common questions about Apple's IDE.
in Xcode
Debugging isn't the most enjoyable aspect of software development, but, whether you like it or not, it is an integral component of building applications. This means that it is essential to learn how to efficiently debug problems. But where do you start? Which tools do you have at your disposal? And when should you use which tool?
in Xcode
Haptic feedback is great for providing the user with a tactile response. It adds that extra dimension to your application's user experience. Apple has made it very easy to integrate haptic feedback into your application thanks to the UIFeedbackGenerator class. You don't directly use UIFeedbackGenerator, though. UIKit defines three concrete subclasses you can use in your projects, UIImpactFeedbackGenerator, UISelectionFeedbackGenerator, and UINotificationFeedbackGenerator. Each of these classes has a clearly defined purpose. Let's take a look.
in UIKit
You are here because you want to learn how to add a gesture recognizer to a UIImageView instance. Right? In this post, I show you how to add a tap gesture recognizer to a UIImageView instance. Even though we only add a tap gesture recognizer, what you learn in this post applies to swipe gestures, pan gestures, pinch gestures, ... Remember that UIImageView is a subclass of UIView and has the same capabilities as its superclass.
in UIKit
Drag and drop is a common pattern in mobile applications. The UIPanGestureRecognizer class makes detecting pan gestures fairly straightforward. The heavy lifting is handled by UIPanGestureRecognizer and its superclass, UIGestureRecognizer. In this post, I show you how to use a pan gesture recognizer in Swift. You learn how to drag and drop a view in its superview using the UIPanGestureRecognizer class.
in UIKit
Detecting swipes on iOS and tvOS is trivial thanks to the UISwipeGestureRecognizer class, a concrete subclass of the UIGestureRecognizer class. In this post, I show you how to use a swipe gesture recognizer in Swift. We create a simple application that detects swipe gestures by leveraging UIKit's UISwipeGestureRecognizer class.
in UIKit