SwiftUI Weekly - Issue #44
The curated collection of links about SwiftUI. Delivered every Monday.
Xcode 12.5 Beta is here!
Update your apps to use new features, and test your apps against API changes.
Lazy navigation in SwiftUI
Most of our apps are more than just a single screen app. We use the navigation to connect different screens inside the app. SwiftUI provides us NavigationLink struct that we can use to link views. This week we will learn how to use NavigationLink more efficiently than before by making it lazy.
Fixing keyboardShortcut in SwiftUI
keyboardShortcut is a convenient way to add shortcuts in SwiftUI. However, it likely won’t work. I’ve been curious why that is, so let’s follow me for a round of SwiftUI debugging! Spoiler: the workaround is at the end of this article.
Using matchedGeometryEffect to Create View Animations in iOS 14
SwiftUI already made it pretty easy to create view animation. In iOS 14, the new matchedGeometryEffect modifier takes view animation to the next level.
Exploring SwiftUI’s Button styles
Button is no doubt one of the most popular SwiftUI elements, it’s also very special, as it is the only component with two different style protocols: ButtonStyle and PrimitiveButtonStyle.
How to sync the width or height of two SwiftUI views?
Multiple solutions to one of the most commonly faced problems when working with SwiftUI.
Which SwiftUI property wrapper to choose in any situation
Decide which property wrapper is the right choice for your needs.
How to create custom View modifiers for better code reusability in SwiftUI
A tutorial on how you can write custom modifiers in SwiftUI for better code reusability. We provide you two examples including how to build reusable view components (e.g. a custom ProgressView) and how to combine several frequently used modifiers into one etc.
A macOS app to control the Xcode Simulator.
Zoom In & Zoom Out Image In SwiftUI
Learn to zoom in / zoom out image using SwiftUI.