SwiftUI Weekly - Issue #50
The curated collection of links about SwiftUI. Delivered every Monday.
Reading
Mastering SwiftUI previews
This week, I want to talk about one of the most powerful Xcode features, SwiftUI previews. SwiftUI previews allow you to look at your SwiftUI views inside Xcode without running the app in the simulator. You can also preview UIKit views and controllers by wrapping them in SwiftUI. Today we will learn about all the powerful features of previews in Xcode.
App-wide state in SwiftUI
With the adoption of SwiftUI, a new trend of creating an app-wide state has been gaining momentum. This is very justified, as it’s one of the few ways to properly handle deep linking, HUDs, and more.
Bindable SwiftUI list elements
Setting up two-way bindings between the elements in a collection and a series of SwiftUI views.
How to use View protocol in SwiftUI
SwiftUI has View protocol which represents part of your app’s user interface and provides modifiers that you use to configure views. You create custom views by declaring types that conform to the View protocol. Implement the required body computed property to provide the content for your custom view.
How to Scan Images and Perform Text Recognition in SwiftUI Using VisionKit
In this tutorial, we will explore the VisionKit framework and show you how to scan documents and perform text recognition in SwiftUI.
How to: Add a search bar to NavigationView in SwiftUI
A fast way to add a search bar to your SwiftUI app with fuzzy search and NavigationView.
Code
MovieDB
An iOS app that lets you keep track of all the movies and shows you already watched.
Video
MVVM in SwiftUI
How to implement the MVVM-pattern in SwiftUI.
Sign in with Apple using SwiftUI
Kilo Loco shows you how to implement Sign in with Apple using SwiftUI and iOS 14. This tutorial will cover handling the SIWA button UI, persisting user credentials, and revoking sign in with apple privileges.
Timer App Clone
Build Complete Timer App Clone in WatchOS, SwiftUI with Combine Timer Publisher.