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.
8:33
With the view and the view model in place, we can authenticate the user. In this episode, you learn how to authenticate a user using the URLSession API and basic authentication.
in SwiftUI
6:32
In the previous episode, we built a sign in form using SwiftUI. In this episode, we create and integrate a view model that drives the sign in form.
in SwiftUI
6:10
In this series, we build a sign in form using SwiftUI. In the first episode, we build the user interface. In the next episodes, we apply the model-view-viewmodel pattern and perform a network request to sign the user in. At the end of this series, we have a fully functional sign in form that is ready to be integrated into an application.
in SwiftUI
7:03
A few years ago, Apple added a number of APIs to the Foundation framework to make it easier to work with units and measurements. The APIs are flexible and straightforward to use. As of this year, SwiftUI integrates with these APIs to make it trivial to display units and measurements. The SwiftUI APIs we discuss in this episode are available as of iOS 15, tvOS 15, macOS 12, and watchOS 8.
in SwiftUI
8:33
To customize a view in a UIKit or AppKit application, you update one or more of the view's properties. For example, to change the text color of a UILabel instance, you update the label's textColor property. That is an imperative approach to user interface development.
in SwiftUI
8:47
SwiftUI's declarative syntax makes it straightforward to describe the user interface you have in mind. The API is intuitive and the framework's learning curve is gentle. But Apple didn't stop there. SwiftUI is deeply integrated into Xcode, making it almost trivial to build user interfaces using SwiftUI.
in SwiftUI
9:45
A view is the fundamental building block of your application's user interface. You already know that a view is a type that conforms to the View protocol. In this episode, we take a closer look at views and the View protocol.
in SwiftUI
9:25
While it is possible to integrate SwiftUI into a UIKit or AppKit application, this series focuses on building applications that are built entirely using SwiftUI.
in SwiftUI
5:40
SwiftUI is Apple's brand new framework for building user interfaces for iOS, tvOS, macOS, and watchOS. Apple introduced SwiftUI in 2019 and the framework has been evolving at a rapid pace ever since. Unlike UIKit and AppKit, SwiftUI is a cross-platform framework. With SwiftUI, Apple offers developers a solution for rapidly building applications. In this series, you learn everything you need to build applications using SwiftUI.
in SwiftUI
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
Did you know that you can preview SwiftUI views on a physical device? This feature is built into Xcode. Connect a device to your development machine and open a SwiftUI view in Xcode. Xcode automatically brings up the canvas on the right, showing you a preview of the SwiftUI view you are working on.
in SwiftUI
A SwiftUI view by default doesn't extend beyond the edges of the safe area. While that is convenient, there are times where this default behavior isn't what you want. In this episode, you learn how to override this default behavior.
in SwiftUI
In this episode, we take a closer look at SwiftUI's Label view. A label is convenient for displaying a piece of text in combination with an icon or image. The idea is simple, but you can customize the behavior of a label quite a bit. It's a simple but powerful view.
in SwiftUI
In this episode, you learn how to create a tabbed application using TabView and the tabItem modifier. The setup is much simpler than using UIKit's UITabBarController class. Decorating the tab bar items with an icon and a title couldn't be simpler. Let's fire up Xcode and create a project.
in SwiftUI
You're reading this because you're looking for an equivalent for UIKIt's viewDidLoad() method. Right? I have good news and I have bad news. The bad news is that SwiftUI doesn't define an equivalent for UIKit's viewDidLoad() method. The good news is that I may be able to clear a few things up for you about SwiftUI.
in SwiftUI