SwiftUI does not follow MVC architecture. This means when you create a brand new application in Xcode 11 and enable SwiftUI, it does not create any controllers. This does not mean that you can’t use MVC design pattern with SwiftUI, it simply means maybe a different pattern (MVVM) can better suite your needs.
Detect your scroll position and apply 3D transform animations.
Ready to get started with SwiftUI? In this tutorial you'll learn how to build an app that uses Core ML to recommend when users should go to bed based on how much coffee they drink, while also showing you how to use steppers, stacks, and date pickers. Watch the UIKit version of this project: https://www.youtube.com/watch?v=x9_BG2q7XYw Get the code for the UIKit version of this project: https://github.com/twostraws/SwiftOnSundays – look inside "010 BetterRest" / App / BetterRest for the SleepCalculator.mlmodel file used in this tutorial. For more information on SwiftUI, see my free online reference guide SwiftUI By Example: https://www.hackingwithswift.com/quick-start/swiftui
Often with mobile apps, we want to conserve the amount of data that is being consumed by users. This can help to save battery life and mobile data on their monthly bills. Newly introduced in Combine is a method called debounce that allows us to throttle changes we receive when typing into a search field.
Implement a dynamic list with empty, error, and loading state
In this video, I'll walk you through how to make expandable rows in SwiftUI! In other words, rows in your list that expand and collapse when tapped.
In this article, we are going to explore the different options for using transitions. We’ll discuss several aspects of them. From the basic to the most advanced. How to configure, combine and trigger them. We’ll study what are the pre-existing transitions, but more importantly, how we can create our own.
You can use the same SwiftUI skills for making an iOS app as you would for making an app on watchOS, tvOS or macOS. We'll cover the basics, and then dig into more detail about how SwiftUI can help you make changes to your app on every Apple device.
When Apple announced the new framework at WWDC2019, I decided to jump into the new opportunity with a challenge to build the first messaging app on SwiftUI.
Most of the time, SwiftUI will do its Layout Magic and life will be wonderful. However, there are times (many times), when we require more control over the layout of our custom views. For these moments, we have several tools. The first one we are going to explore is GeometryReader.
In this article we are going to dive into some advanced techniques to create SwiftUI animations. I will talk extensively about the Animatable protocol, its trusty companion animatableData, the powerful and often ignored GeometryEffect and the completely overlooked but almighty AnimatableModifier protocol.