Day 16/18 – project 1

The first project of the 100DaysOfSwiftUI program is a simple iOS application for splitting a restaurant bill by adding a percentage for the tip.

SwiftUi topics: basic structure of SwiftUI apps, how to build forms and sections, creating navigation views and navigation bar titles, how to store program state with the @State and @FocusState property wrappers, how to create user interface controls like TextField and Picker, and how to create views in a loop using ForEach

#swiftui basics

Insert the global amount

Insert the number of people that share the bill

Choose a tip percentage

And you get the Total Check

Trovi il codice nel mio repo pubblico su Github

Data