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 613 to 624 of 716 posts
Converting data to a string is common task in the context of networking or file input/output. In this episode, you learn how to convert a Data object to a String in Swift.
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
Security is a vital aspect of every piece of software. Apple has made this very clear with the introduction of App Transport Security (ATS for short) several years ago. The company introduced App Transport Security alongside iOS 9 and macOS 10.11 (El Capitan) during WWDC 2015.
in Networking
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