Creating pickers in a form - WeSplit SwiftUI Tutorial 8/11
Вставка
- Опубліковано 22 сер 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: This video
9. Adding a segmented control for tip percentages: • Adding a segmented con...
10. Calculating the total per person: • Calculating the total ...
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... - Наука та технологія
You make it look so simple, thank you!
You deserve more views, anywaysss thanks for this
But if we want to have a separate text (a short form) for the chosen item in the main View and a more detailed descriptions (long form) when choosing items in the picker View? in other words, to give an example based on your project, when we choose "10 people" from the list, than to display in the view "10 ppl", next to "The number of people:". how can we achieve that? It would be much appreciated if you could answer!
Locale.current.currency?.identifier is not providing INR for India location
Section{
TextField("Bill Amount", value: $checkAmount, format: .currency(code: Locale.current.currency?.identifier ?? "USD"))
.keyboardType(.decimalPad