This SwiftUI project is another forms-based app that will ask the user to enter information and convert that all into an alert.
Challenge One of the best ways to learn is to write your own code as often as possible, so here are three ways you should try extending this app to make sure you fully understand what’s going on:
Replace each VStack in our form with a Section, where the text view is the title of the section. Do you prefer this layout or the VStack layout? It’s your app – you choose! Replace the “Number of cups” stepper with a Picker showing the same range of values. Change the user interface so that it always shows their recommended bedtime using a nice and large font. You should be able to remove the “Calculate” button entirely.