SwiftUI Weekly - Issue #126
The curated collection of links about SwiftUI. Delivered every Monday.
Sponsor
Spot the differences, merge in seconds — kaleidoscope.app
Kaleidoscope gives you power tools to use at each stage of the development cycle. Compare source code, resolve git merge conflicts, debug with the kspo command, and check your XCTest results. Get 20% off by using coupon SwiftUIWeekly.
Reading
Adventures in Orienting Views in SwiftUI
One of the little touches I was adding called for adding a little rotation to some views, sometimes. Nothing much, just a single degree’s worth. But I noticed something weird seemed to be happening to the layouts when I did so. It’s a bit tricky to describe, so let me save a couple of thousand words and show you an example instead.
Efficiently Managing Multiple Async Tasks in SwiftUI
Check how to run multiple async functions in Swift and when one return cancel others. Learn about task cancelation in Task groups in SwiftUI.
Previewing Stateful SwiftUI Views
Learn how to create interactive previews for SwiftUI views that make use of @Binding.
How to change SwiftUI Button Size
Learn how to control the size of a button in SwiftUI.
Code
everettjf/EasyVM
Yet another virtual machine application based on the Virtualization framework.
Video
Numeric TextFields in SwiftUI
In this video, I am going to show you how I handle textfields for iOS and iPADOS in SwiftUI when I want to restrict entry to either integer or decimal values only.