100-days-of-swiftui-and-com.../day-028
CypherPoet 38c28cb493 Complete Day 28 2019-10-21 07:19:19 -05:00
..
README.md Complete Day 28 2019-10-21 07:19:19 -05:00

README.md

Day 28: Project 4: BetterRest (Part Three)

Follow along at https://www.hackingwithswift.com/100/swiftui/28.

📒 Field Notes

This day covers Part Three of Project 4: BetterRest in the 100 Days of SwiftUI Challenge. (Project 4 files can be found in the directory for Part One.)

In addition to recapping the material covered during the project's other days, Day 24 focuses on extending the project according to a set of challenges.

🥅 Challenges

Challenge 1

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? Its your app you choose!

  • Already covered in Day 27 🙂.

Regarding preferences, though, Form gives us built-in scrolling functionality and is more semantically appropriate for what we're building -- so I'd probably lean in that direction.

Challenge 2

Replace the “Number of cups” stepper with a Picker showing the same range of values.

Challenge 3

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.

📸 Screenshots