Calculating the total per person - WeSplit SwiftUI Tutorial 10/11
Вставка
- Опубліковано 11 вер 2024
- Download the completed project here: github.com/two...
Other parts in Project 1:
Introduction: www.hackingwit...
1. Understanding the basic structure of a SwiftUI app: • Understanding the basi...
2. Creating a form: • Creating a form - We...
3. Adding a navigation bar: • Adding a navigation ba...
4. Modifying program state: • Modifying program stat...
5. Binding state to user interface controls: • Binding state to user ...
6. Creating views in a loop: • Creating views in a lo...
7. Reading text from the user with TextField: • Reading text from the ...
8. Creating pickers in a form: • Creating pickers in a ...
9. Adding a segmented control for tip percentages: • Adding a segmented con...
10. Calculating the total per person: This video
11. Hiding the keyboard: • Hiding the keyboard - ...
Wrap up and challenges: www.hackingwit...
You can find the full set of videos, along with transcriptions, challenges, tests, and more, in my free 100 Days of SwiftUI course: www.hackingwit...
Watch the full 100 Days of SwiftUI playlist here: • 100 Days of SwiftUI (i...
Wouldn't it be easier and cleaner to tag the fields in the picker with the correct numberOfPerson value instead of offsetting the initial value and in the calculation by two?
That's what I thought too, I ended up using "ForEach(2..
@4:15 Why does the TextField not update using the format currency? While carrying out this tutorial, the field never updates after using decimalPad and Done.