SwiftUI Weekly - Issue #128
The curated collection of links about SwiftUI. Delivered every Monday.
Reading
Mastering charts in SwiftUI. Mark styling.
Last week we started a series of posts about the new Charts framework available on the latest Apple platforms. We talked about basic stuff and learned how to plot data. This week we will continue mastering the Charts framework by learning different customization and styling options available.
How to create Sound Wave Animation with TimelineView and Canvas in SwiftUI
The TimelineView is very straightforward and a great addition to iOS 15, it is just a view that updates according to a preset scheduler that you can provide. This scheduler can be fixed dates in the future, or a simple animation scheduler that will animate changes inside the TimelineView, and can also repeat in recurring intervals.
Modern SwiftUI: Parent-child communication
It is common to break up a complex view into smaller pieces. Even something as simple as showing a sheet is typically done by having a dedicated view for the presenting view and presented view. For example, a list of rows such that when one is tapped it brings up a sheet for editing.
Customize ShareLink appearance with view modifiers
While we can provide a fully custom view as a label of the ShareLink in SwiftUI, we can also customize the default appearance with view modifiers instead.
Swift Package String Localization
How do you localize a string in a Swift Package?
How to use SwiftUI in Storyboard using UIHostingController subclass
There are two ways to use SwiftUI as UIViewController
in Storyboard for a UIKit project.
Videos
Lottie 4 in SwiftUI
In this video I will introduce you to Lottie 4.0, Lottie is Airbnb’s cross-platform, open-source library for rendering vector motion graphics. Lottie is used extensively at Airbnb, and it also powers animations in thousands of other apps throughout the industry.