Summary
I spent less than a month learning SwiftUI and launched a pomodoro App “Focus Town — Stay Focused” to app store and here’s how it happened.
Learning the basic of SwiftUI
You don’t need be an expert in certain skill before you can start applying it. I sincerly believe the 80–20 rules also applies to programming. That is, 80% of the app code is built with the same 20% knowledge. And here are the 20% SwiftUI building blocks that are enough to get started. For the remaining 80%, I try learning them when I run into a situation that requires it.
Generic UI Layout
- ZStack{ .. }
- HStack{..}
- VStack{..}
Generic Components
- Text()
- Image()
- Button()
- Spacer()
- List()
Generic Modifiers
- padding()
- foregroundColor()
- backgroundColor()
- font()
State Management keywords
- @State private var state
- @Binding private var binding
A simple idea and just do it!
Once I learned the above, I have all the tools required to start building app. Next step is to come up with an idea. I wanted a pomodoro timer that looks calming and have some sense of progression. And before my brain has a chance to complain it’s too dificult or time consuming, just do it