|
I just completed coding the Day 19 challenge and I got it to work it appears. I chose to code for the unit of measure length. When reading the Picker selections for starting and ending UofM I tried to use a switch statements with cases for each picker selection but couldn't get it to build; so eventually abandoned the effort and used If statements instead which works. Is it possible to use a switch statement instead of If statements? If so how would it be coded? Much appreciated in advance. My code follows...
|
|
Good job on getting it working. Is this what you're looking for?
|
|
Hey thanks. Yes I tried that but kept getting an error that there was no return value so punted and went to If statements. I'll try it again and see what happens. |
|
Try this.
|
SPONSORED Optimize your app’s startup time, binary size, and overall performance using Emerge’s advanced app optimization and monitoring tools. Reliably measure app size, speed up your app's startup time with Emerge's Launch Booster, and much more. Emerge is actively used by many of the top mobile development teams in the world.
Sponsor Hacking with Swift and reach the world's largest Swift community!
You need to create an account or log in to reply.
All interactions here are governed by our code of conduct.
Link copied to your pasteboard.