In the SwiftUI community, many people come up with their own version of a conditional view modifier. There are many blog posts out there with similar modifiers. I think all these blog posts should come with a huge warning sign. Why is the above code problematic?
SwiftUI became very powerful during the last WWDC. We gained many new features, and one of them was a brand new FocusState property wrapper. FocusState property wrapper allows us to read and write the current focus position in the view hierarchy. This week we will learn how to manage focus in SwiftUI apps using FocusState property wrapper and focused view modifier.
This SwiftUI 3.0 tutorial in Xcode 13 we will be looking at how I approach and structure my SwiftUI MVVM project specially with the new Swift async/await API available in Swift Concurrency. We’ll look at how we can structure a SwiftUI 3.0 project in Xcode 13 with networking capabilities. Well let’s jump into this SwiftUI 3.0 tutorial to see my thought process.
In today’s video, I explain what EnvironmentValues in SwiftUI are and how to use them. EnvironmentValues are a way for the device to communicate some of its system-wide settings with your SwiftUI app. In the code examples, I show you have to use a couple of these EnvironmentValues to adjust your UI to settings like Dark Mode and Dynamic Type.
In today’s video I show you how to create a TabView with the Page style in SwiftUI. This results in views that you can swipe through with dots at the bottom indicating which screen you are on. This is typically found in onboard views.