I'm not quite on track with the #100DaysOfSwiftUI... I've done some kind of reading/tutorial watching every day, but haven't caught up on the practicals.

Finally got round to the Challenge for Day 19 after getting Project 1 done in the week.
#iosdev #swiftui

I liked this one. I started off basic, almost copying day 1 verbatim, then increased the complexity a bit, by changing the array to an enumeration and also making the "to" value change based on what's selected in the "from" picker.
TIL: That setting a TextField to align .trailing will mean when it's focused, the cursor will be at the start of the value (making it tricky to backspace).

Two things I couldn't manage to do...

1. Prevent a unit being selected in the "two" when changing the "from" to the same value.

2. Clear the 1.0 default value onFocus.

I'd like to revisit this down the line and address these.

@n8udd I’m going to have to do that problem in base-20 using Kaktovik numbers.
@TheSwiftDojo TIL what Kaktovic Numerals are!
@n8udd watch the video - you will fall in love with https://youtu.be/EyS6FfczH0Q?si=PHr53RvEMYGPwsbK
Why These Are The Best Numbers!

YouTube