I’m not going to cover all the new features, but I’d like to share one i’ve been using in my side project, Activobot.
This project is just a health & fitness app with a few simple goals:
- Accurately determine how many calories a person needs in a day to keep the lights on
- Track caloric input (from meals) & caloric output(from activities like exercises etc)
As it turns out accurately calculating the amount of calories we burn from different activities is a rather complex multi-step process!
There is an overwhelming amount of data, equations, case studies, and latin. (obligatory et all).
I started the project with swift4 in late 2017. Enums were perfect for representing different states and types for things like units of measurement. Structs I found were also perfect for representing my data structures for the user biometrics and meals.
Fast forward to NYE in 2018.
I decided to take all the old research data I’d already collected and rebuild using modern js so I could practice learning React & Redux.
For me, part of the beauty of swift is its expressivness and how it allows us to build small functional building blocks that can be composed together.