Dominik Hofer
Dominik Hofer

Day 8 #100DaysOfSwiftUI

✅ Default values
✅ Throwing functions
✅ Checkpoint 4

🔑 takeaways:
👉 = defaultvalue
👉 There is an error Swift type
👉 throws keyword before return type
👉 do try catch keywords

Trickier challenge today, but managed to solve it 🙌

Dominik Hofer
Dominik Hofer

One of my goals is to buy my next iPhone with money I made from creating iOS apps.

That would surely be an amazing feeling. Still a long way to go but you gotta have dreams 😇

Dominik Hofer
Dominik Hofer

Day 7 #100DaysOfSwiftUI

✅ Functions
✅ Params
✅ Return

🔑 takeaways:
👉 Params are named, type annotated and can have an alias
👉 Return value is annotated with -> Type
👉 Use Tuples to return multiple values (they have a fixed size)
👉 Tuples can be destructed

Dominik Hofer
Dominik Hofer

The best product ideas always come from scratching your own itch.

Nobody is better at solving your own problems than yourself.

Dominik Hofer
Dominik Hofer

The @webflow newsletter is one of my favorite resources to learn about new tools & beautiful sites.

Always looking forward to the next issue 🙌

Dominik Hofer
Dominik Hofer

Day 6 #100DaysOfSwiftUI

✅ Loops
✅ Checkpoint 3

🔑 takeaways:
👉 Ranges are a unique data type (... and ..<)
👉 Int.random(in: x) for random number
👉 continue & break to exit loops

The challenge was a classic code problem. Below is my solution for “FizzBuzz” 👇

Dominik Hofer
Dominik Hofer

Day 5 #100DaysOfSwiftUI

✅ If/else
✅ Switch
✅ Ternary operator

🔑 takeaways:
👉 Switch blocks must be exhaustive
👉 For ternary operators, remember WTF: What ? True : False

Dominik Hofer
Dominik Hofer

Visualizing really is a powerful tool.

I just completed day 2 of @mattdavella's Unstuck Challenge and the “ideal day in your life” exercise got me thinking quite a bit.

After writing down the visualization, I'm more even more motivated to pursue my dreams! 🙌

Dominik Hofer
Dominik Hofer

The best products are not those that are simply good, but those that take what‘s already out there and make it better.

Dominik Hofer
Dominik Hofer

I'm only a few days into my #SwiftUI journey, but I already appreciate the type-safety features of the language.

Helps tremendously to reduce those embarrassing mistakes.

Dominik Hofer
Dominik Hofer

Day 4 #100DaysOfSwiftUI

✅ Type annotations
✅ Checkpoint 2

🔑 takeaways:
👉 Whenever possible, use type inference

Below is my solution for the checkpoint. Wasn't that hard but reinforced my knowledge of sets: Now I know that they are made from arrays 💡

Dominik Hofer
Dominik Hofer

Day 3 #100DaysOfSwiftUI

✅ Arrays
✅ Dictionaries
✅ Sets
✅ Enums

🔑 takeaways:
👉 Use default to access data in dictionaries
👉 Sets are significantly faster in look-up operations than arrays
👉 With enums, you essentially define a new data type with all possible values

Dominik Hofer
Dominik Hofer

Day 2 #100DaysOfSwiftUI

✅ Booleans
✅ String interpolation
✅ Checkpoint 1

🔑 takeaways:
👉 String interpolation is more efficient than string concatenation

The checkpoint exercise was a simple Celcius to Fahrenheit converter. Completed it without any problems 🙌

Dominik Hofer
Dominik Hofer

Day 1 #100DaysOfSwiftUI

✅ Variables
✅ Constants
✅ Strings
✅ Numbers

🔑 takeaways:
👉 Use constants whenever possible
👉 Type safety is a very helpful feature of Swift

Dominik Hofer
Dominik Hofer

Going for a bike ride first thing in the morning and enjoying this view is amazing 😍

Really helps clear your head and gives you a sense of accomplishment afterward.

Dominik Hofer
Dominik Hofer

Many problems in our lives come from our non existent ability to delay gratification. And our short attention span.

The Tiktok effect.

Dominik Hofer
Dominik Hofer

I'm currently struggling a bit to decide what to focus my attention on.

So for the next few weeks, I'll:
⟡ work on my personal website
⟡ take the #100daysofswiftui course
⟡ grow my Twitter account, build more connections

Will share my progress here ✌️

Dominik Hofer
Dominik Hofer

Todays @Webflow 💎:

Hitting this little button in the top right of the spacing accordion centers an element (with margin: 0 auto).

Dominik Hofer
Dominik Hofer

Only now discovered that @Figma actually tells you which corner you're editing (focus on the icon on the left side).

Love finding these little UX gems in the wild 🥰

Dominik Hofer
Dominik Hofer

A quick little @NotionHQ tip I just discovered:

Type “:name” to quickly insert an emoji without having to search for it in the native emoji-picker.

Dominik Hofer
Dominik Hofer

Debating on what platform I should choose to build my personal website.

The candidates are:
– @super_
– @framer
– @webflow

What would you choose? Any opinions or suggestions? 🤔

Dominik Hofer
Dominik Hofer

Reenabling the Youtube watch history has drastically improved my watch experience. I regularly get recommended great videos that I would've otherwise missed.

I know, that personalization can be dangerous if you don't be cautious… But if used responsibly, it's a great feature.

Follow

RSS Feeds