SwiftUI Weekly - Issue #39
The curated collection of links about SwiftUI. Delivered every Monday.
News
Xcode 12.3 is available on the Mac App Store
Xcode 12.3 includes Swift 5.3 and SDKs for iOS 14.3, iPadOS 14.3, tvOS 14.3, watchOS 7.2, and macOS Big Sur 11.1.
Reading
Develop Apps with SwiftUI
Create apps using SwiftUI and Xcode. Build Scrumdinger, an app that keeps track of daily scrums.
Styling custom SwiftUI views using environment
One of my favorite features of SwiftUI is styling. I love the idea of style protocols provided by every view and sharing them using the environment. I have already covered most of the style protocols for SwiftUI provided views in my previous posts. But what about custom views? This week we will learn how to share styling using environment for our custom views.
Building a tvOS app in SwiftUI
In this post, I’ll discuss how I built a movie-streaming tvOS app in SwiftUI, for the Swedish public library service Cineasterna.
Let’s build @State
@State is one of the many SwiftUI’s pillars that, once understood, we take for granted and use pretty much everywhere without a second thought. But what is @State? What’s happening behind the scenes?
An alternative to SwiftUI’s stacks + Spacer combo
Apple has recently published some great new articles around building layouts with SwiftUI’s stacks in various situations.
3 Crucial Things to Know About NavigationLink in SwiftUI
Navigation is an essential component of any application, and with SwiftUI, Apple introduced NavigationLink and NavigationView to allow us to create routers with ease.
Code
GalwayBus
Galway Bus Kotlin Multiplatform project using Jetpack Compose and SwiftUI.
Podcast
“The SwiftUI layout system”, with special guest Chris Eidhof
Chris Eidhof returns to the show to go on a deep dive into the SwiftUI layout system. What are the different phases involved in determining a given view’s layout, how do concepts like layout priorities and flexibility work, and what makes SwiftUI different from UIKit and AppKit in terms of layout?
Video
ScrollViewReader
How to use new ScrollViewReader in SwiftUI 2.0.