I mentioned in a previous post about my adventures with SwiftUI. It’s fun to learn something new and the least I can do is to share what I learned. For most it might be too introductory, or not necessary, however I know that every journey starts with a first step.
You are by now probably aware of Calmaria.app. I know I keep posting about it and there are a couple of reasons for that. One, breathing exercises are something I’ve been doing a lot and have really helped me deal with anxiety and stress. Two, because it also gets me excited about learning new things, from building an Android app using Kotlin, to learning SwiftUI and launching the iOS version, including an Apple Watch one.
With those things in mind and with the goal to share as much as I can about my learnings, today I will share the base source code I created for the iOS app using SwiftUI. Big disclaimer, it was the first app I’ve ever written using SwiftUI, plus, add on top of that I am a designer not a developer. I actually suck at coding, you will see a lot of redundancies.
As usual, you can find the code on GitHub and this particular one is from Playgrounds, so just paste that code in Playgrounds and you should be good to go.