SwiftUI Weekly - Issue #166
The curated collection of links about SwiftUI. Delivered every Monday.
Reading
Advanced SwiftUI Animations – Part 7: PhaseAnimator
Now it is time to look at a new view: PhaseAnimator
. If you have been playing around with this new toy, you may have noticed there is also a phaseAnimator()
modifier. This is just a convenient way of using the view, with a small restriction. We’ll see an example of how to use the modifier at the end of the article.
Interactive pie chart in SwiftUI
SectorMark represents a slice of the pie and comes with various properties for configuring the visual look of it. What we’ll be building is a pie chart on which we can tap, and then the sector or slice is animating to a larger size.
Deliver reusable components without making them reusable
Reusability and duplication are tough to balance. What if I told you that, sometimes, you don’t have to? In this article, we are going to get philosophical about the purpose of components. This allows you to deliver features that are more reusable with little risk.
Mastering TipKit: Basics
TipKit is a framework introduced by Apple at WWDC 2023 that allows you to easily display tips in your applications. It can be used to introduce new features to users, help them discover hidden options, or demonstrate faster ways to accomplish tasks, among other scenarios.
Mastering TipKit: Advanced
In this article, we will discuss some advanced topics related to TipKit, such as how to fully customize the Tip view (without using TipView and popoverTip), how to use TipKit in UIKit, and how TipKit can share data between different applications. Finally, we will try to answer some common questions related to TipKit.
Backport SwiftUI modifiers
There are some APIs that are easy to backport if we disregard the old versions of the operative system. This may sound awful but is a valid option that is worth considering. If you know you have a very small percentage of users stuck in the old version but you can't get rid of it because of some policy, you know the impact is very minimal.