Improving multiplatform SwiftUI code ·
For multiplatform projects where I’m using SwiftUI, it certainly makes developing for multiple platforms at once significantly faster. However, each o
Get Started for FREE
Sign up with Facebook Sign up with X
I don't have a Facebook or a X account
For multiplatform projects where I’m using SwiftUI, it certainly makes developing for multiple platforms at once significantly faster. However, each o
This in-depth tutorial will teach you how to use UIPickerView with Swift 5.7 and Xcode 14. Learn how to use a Picker and add it to a SwiftUI view now.
You may want to build a custom tab bar using SwiftUI to suit your iOS app project. This tutorial walks you through the technique to build an animated tab bar.
When you need to download or upload data in iOS apps, use the `URLSession` class to group, pause, resume and cancel network transfers.
When debugging a large project in Xcode that a large team works on, the console can get quite busy. Logs are everywhere! It can be difficult to sift throug
Starting from iOS 16.4, you can customize the SwiftUI Bottom Sheet's background, scrolling behaviour and many more. Let's dive in and see how it works.
Starting from iOS 16.4, you can customize the SwiftUI Bottom Sheet's background, scrolling behaviour and many more. Let's dive in and see how it works.
One of Swift’s great features is that you can extend the pattern matching system. In this article I show you how to add pattern matching support for inequalities in switch statements.
Foundation overloads the pattern matching operator ~= to enable matching against error codes in catch clauses.
What’s really the difference between building a piece of UI as a view versus a modifier, and how to choose between those two solutions?
While working on a very large iOS client project, I was investigating the causes for our slow app launch time. We had a hypothesis that part of the proble
We’re happy to announce that The Swift Programming Language book is now published using Swift-DocC, starting with Swift 5.8. TSPL is now ready to start accepting content contributions, under the direction of the Swift Documentation Workgroup.
Awesome <3
You can easily build your own toggles in SwiftUI using the ToggleStyle protocol. In this tutorial, we will walk you through the process with code samples.
In SwiftUI, most colors are semantic colors that get resolved at runtime. For example, here are a few colors (rendered on macOS) in both light mode and dark mode. It’s a little hard to see, but even colors like .blue and .red are slighly different: Note that the above colors might be influenced by...
In this tutorial, we will show you how to build QR Code Scanner app using SwiftUI. You will learn how to integrate SwiftUI projects with UIKit and AVFoundation.
In our SwiftUI workshop we always include an exercise where you learn about how the environment works. Often, we build some kind of stylesheet that gets passed down the environment, from the root view.
How the content offset of a SwiftUI ScrollView can be observed without bridging to UIKit.
This week’s post about how the SwiftUI view protocol really represents lists stirred a bit of controversy on Mastodon. But I think we all learned a bit from the discussion that followed (I definitely did). To deal with these lists of views (e.g.
Alert is equivalent to UIKit’s UIAlertView in SwiftUI. This post is about creating and presenting an alert in SwiftUI.
Hint: This post has been updated to Swift 5.7 and Xcode 14.2
Creating an alert in SwiftUI
Creating an alert in SwiftUI is very straightforward:
Alert(title: Text(
When you write SwiftUI, all your views conform to the View protocol. The name of this protocol is a bit misleading: I it could be called Views or ViewList, or something else that suggests plurals. For example, consider the following view: struct MyView: View { var body: some View { Text("Hello")...
VisionKit comes with new Scanning and Text Capabilities. In this tutorial, you’ll learn how to use Apple’s latest VisionKit update to take advantage of the new capabilities.
A possible vision for macros in Swift. GitHub Gist: instantly share code, notes, and snippets.