SwiftUI Weekly - Issue #133
The curated collection of links about SwiftUI. Delivered every Monday.
Add subscriptions to your app in minutes with RevenueCat. See why 20,000+ apps use RevenueCat to power in-app purchases and subscriptions. Learn more here
Mastering charts in SwiftUI. Legends.
Last week we started the topic of the Swift Charts framework customization options using a bunch of chart view modifiers. It is a vast topic that I divide into a few small posts. This week we will discuss configuring the legend view using the new Swift Charts framework.
SwiftUI views versus modifiers
That very data-driven approach gives us a ton of flexibility when it comes to how we structure our view code — to the point where one might even start to question what the difference actually is between defining a piece of UI as a view type, versus implementing that same code as a modifier instead.
Keyframe animations in SwiftUI
Apple keeps adding new views modifiers to enable more creative solutions and designs but now and then I find SwiftUI lacking basic features that UIKit has since the beginning. One of these functionalities is keyframe animations.
SwiftUI Design: Create a card view
Card-like designs are seen often in UIs. Usually, some view with a white background, rounded corners, and a dark shadow that makes the view look like a card on top of another view. Not too complicated to implement, but gives a nice look to different view components and separates parts of UI.
Creating Animations with SwiftUI’s Mask View Modifier
We will explore the Mask API, which is really straightforward because has only one parameter. Then we will create a simple example just applying opacity to a view, then we will explore how we can use a mask to create custom complex shapes and cutouts with images and finally we will create animations using what we have learned today.
Arbitrary SwiftUI Linear Gradient Rotation
As part of an upcoming Widgetsmith feature I wanted to draw linear gradients. I’ve done this countless times using the wonderful
LinearGradient fill style. This works great and can easily slot into so many different shapes and situations in SwiftUI. Whenever I’ve used these before, however, I’ve only ever used the built-in direction values:
.leading, etc. And if I’m being honest, those were the only options I thought we had.
Everything You Need To Know About Requesting App Reviews & Ratings In SwiftUI
Hey and welcome back to another video, In this video we’re going to be looking at how we can use the new iOS16 updates in StoreKit within SwiftUI for an iOS App Review. Ratings and Reviews in an iOS app can help you shoot up the AppStore and get more visibility to get more downloads.