SwiftUI Weekly - Issue #145
The curated collection of links about SwiftUI. Delivered every Monday.
Simplify building, managing, and growing in-app purchases. Full set of monetisation tools from subscription management SDK to Paywalls and more. Build for free today
Although Swift 6 is looming on the horizon, the 5.x releases still have a lot to give – simpler ways to use
switch, macros, noncopyable types, custom actor executors, and more are all coming in Swift 5.9, making yet another mammoth release.
One of the significant additions to the Swift Foundation was the new Formatter API. After almost two years of using it, I apply it in every project, and even more, I try to build my data formatting logic around this API. Today we will learn how to use the new Swift Foundation Formatter APIs.
Grids are a powerful layout tool that have been introduced in SwiftUI as of WWDC 2022. They allow developers to create dynamic and responsive layouts that can adapt to various screen sizes and device orientations.
We are adding some in-app purchase buttons in our next update in Exsto and we noticed a visual glitch in button pressed state. Since our buttons have a complex hierarchy with a tag and a border, the transparent layers weren't blending correctly by default. The border and tag each became semi transparent and blended into each other.
The same way SwiftUI buttons can be given a
.bordered button style to apply a nice, round border, you can use
ControlGroup to group several buttons together in a bordered group. Let’s look at how.
Coding review of Apple's Scrum Project built with SwiftUI. In this detailed review, I will take you through various components of this demo project from Apple, shedding light on the functionalities, and offering tips on how to improve and optimize it. I will give you tips and tricks to write better SwiftUI apps.