SwiftUI Weekly - Issue #40
The curated collection of links about SwiftUI. Delivered every Monday.
News
If you got an iTunes/Apple gift card for Christmas, Apple activated the 85% proceeds rate a week early for indie devs, so there's never been a greater time than now to support indie apps! ❤️🎉
Reading
Hero animations in SwiftUI
Animation is one of the powerful features of SwiftUI. I was shocked when I saw how easy we could animate changes in view hierarchy by simply mutating @State properties and attaching animation modifiers. This week we will talk about another animation type called hero animation. We will learn how we can implement hero animations using the new matchedGeometryEffect view modifier.
Getting started with UIKit in SwiftUI and visa versa
Learn how to integrate SwiftUI today in your UIKit app and make use of a useful extension which adds those views in just one line of code.
Labels in SwiftUI
We often underestimate the power of simple things. The same feelings I had during the first usage of Label view in SwiftUI. It looks straightforward, but it hides the many use cases where it works great. Today we will talk about the Label view and its customization capabilities.
Building a video streaming app for iOS in SwiftUI
In this post, I’ll discuss how I built a movie-streaming app for iOS and iPadOS in SwiftUI, for the Swedish video streaming service Cineasterna.
Creating images from SwiftUI views
How to turn any SwiftUI view into a UIImage.
How to Create the Snake Game in SwiftUI
We are going to detect the swipe direction and have the snake move in that direction constantly until the direction changes. Let’s first create an enum for the directions.
Code
MortyUI
A very simple Rick & Morty app to demo GraphQL + SwiftUI.
SwiftUIKitView
Easily use UIKit views in your SwiftUI applications. Create Xcode Previews for UIView elements.
Video
SwiftUI Layout Explained
A central piece of every UI framework is its layout system, and SwiftUI is no exception. Without a good understanding of the layout system, building user interfaces quickly becomes frustrating.