Dominik Hofer
Dominik Hofer

Day 96 #100DaysOfSwiftUI

✅ Overview of the last project (SnowSeeker)

🔑 takeaways:
👉 Adaptive layout
👉 Can use sheets & alerts with optionals
👉 Groups are like divs
👉 Use .horizontalSizeClass to adjust view based on screen
👉 .searchable()

Show thread (2 posts)
Dominik Hofer
Dominik Hofer

Which platforms to use if you like to create:

Shortform videos → Instagram, Tiktok
Longform videos → Youtube, Instagram
Photos → Instagram, Pinterest, Unsplash
Design → Instagram, Twitter, Dribbble
Coding/Building in public → Twitter
Writing → Twitter, Blog, Newsletter

Dominik Hofer
Dominik Hofer

Day 95 #100DaysOfSwiftUI

✅ Made a lil random number generator (dice roller)

Nothing too fancy, but I got to reuse some of the code from yesterday for the color interpolation :)

Dominik Hofer
Dominik Hofer

Day 91 #100DaysOfSwiftUI

✅ Some more GeometryReader action

Rows now fade up when they get to the top, get smaller, and the hue changes based on the vertical position.

Was very fun to work on (and visually pleasing 🤓)

Helix pt. II (interesting code in next Tweet) 👇

Show thread (2 posts)
Dominik Hofer
Dominik Hofer

Day 93 #100DaysOfSwiftUI

✅ GeometryReader time

🔑 takeaways:
👉 Absolute & relative positioning (.position & .offset)
👉 GeometryReader reads the available space (expands)
👉 Global and local (relative) coordinates
👉 Sometimes, multiple GRs are required

Fancy helix alert:

Dominik Hofer
Dominik Hofer

Day 92 #100DaysOfSwiftUI

✅ Learned how SwiftUI layouts work

🔑 takeaways:
👉 There are layout-neutral views/modifiers that ask their children for their size
👉 .alignmentGuide()
👉 Create custom alignment guides as enums

I can already feel that we're approaching day 100 fast!

Dominik Hofer
Dominik Hofer

Day 91 #100DaysOfSwiftUI

✅ Added some additional features on my own

There were some slight improvements plus wrong-answered cards get added to the back of the queue. The last part is rather messy though, might have to revisit this part with a fresh mind…

Dominik Hofer
Dominik Hofer

From the @Codecademy data science path:

“In the end, your human oversight and critical consideration of the data will have the biggest impact on data quality.”

Dominik Hofer
Dominik Hofer

Really not a fan of the whole Figma/Adobe bashing, BUT…

Why is @Adobe charging me 12.– if I choose to cancel my monthly subscription? This doesn't make sense to me at all and is bad CX practice (ironically, they create products that are supposed to help you design great CX)…

Show thread (2 posts)
Dominik Hofer
Dominik Hofer

That's great UX:

@pixelmator Photo allows you to set a reminder before you get charged after the free trial.

Kudos, that makes me want to support you even more 👏

Dominik Hofer
Dominik Hofer

Day 89 #100DaysOfSwiftUI

✅ Building the Flashzilla project (II)

🔑 takeaways:
👉 .background modifier

  • Used some fancy ternary operators to change the background color of the cards. There is even an alternate UI for people who choose a specific color a11y setting.
Dominik Hofer
Dominik Hofer

Day 88 #100DaysOfSwiftUI

✅ Building the Flashzilla project (I)

🔑 takeaways:
👉 RoundedRectangle with style .continuous creates a squircle
👉 You can init an array with repetition
👉 abs() for absolute number
👉 Pass closure to view to “access” parent view

Dominik Hofer
Dominik Hofer

Day 87 #100DaysOfSwiftUI

✅ Overview of the Flashzilla project (II)

🔑 takeaways:
👉 Use .onReceive for publishers (like timers)
👉 scenePhase tracks the state of the app (active, inactive, background)
👉 You can access the a11y settings of the user via the environment

Dominik Hofer
Dominik Hofer

If #Xcode doesn't seem to recognize your connected iPhone, try this command in your terminal after disconnecting the device and quitting the program 👇

Dominik Hofer
Dominik Hofer

Day 86 #100DaysOfSwiftUI

✅ Overview of the Flashzilla project (I)

🔑 takeaways:
👉 Child's gesture has priority by default
👉 Gestures can be sequenced
👉 CoreHaptics for complex vibrations
👉 .allowsHitTesting() & .contentShape()

Also, I created something … interesting 🤔

Dominik Hofer
Dominik Hofer

Government websites are usually a hot mess.

One positive example though is https://www.ch.ch/en. It provides simple answers to frequently asked questions for Swiss citizens.

Great UX, available in 5(!) languages and built with modern technologies (spotted Nuxt 🤓).

Dominik Hofer
Dominik Hofer

Day 85 #100DaysOfSwiftUI

✅ Added some additional features on my own

Also, there was a rewrite of the save and load functionality.

The awesome thing is, by now I already have built a library of code snippets, so I used one from the BucketList project for this feature :)

Dominik Hofer
Dominik Hofer

Day 84 #100DaysOfSwiftUI

✅ Building the HotProspects project (III)

🔑 takeaways:
👉 Encapsulate your code (getters & setters)
👉 Make properties & methods private if possible

Refactoring and making your code better is just 🫶

Dominik Hofer
Dominik Hofer

Day 83 #100DaysOfSwiftUI

✅ Building the HotProspects project (II)

🔑 takeaways:
👉 .textContentType for better autocompletion
👉 There is a built-in QR code generator

This QR code part sparked an idea in me – maybe I'll explore it further…

Dominik Hofer
Dominik Hofer

Day 82 #100DaysOfSwiftUI

✅ Building the HotProspects project (I)

🔑 takeaways:
👉 Customizable view with enums
👉 Reminder: Mark ObservableObject classes as @ MainActor
👉 Dynamically filter data with computed property

I enjoy these kinds of days just building layouts.

Dominik Hofer
Dominik Hofer

Day 81 #100DaysOfSwiftUI

✅ Overview of the HotProspects project (III)

🔑 takeaways:
👉 .contextMenu modifier for secondary actions
👉 .swipeActions on list items for further actions
👉 Two types of notifications: Remote & local

Great UX is already built in!

Dominik Hofer
Dominik Hofer

Did you know that there is a more convenient way to add the frame modifier you need in #Xcode14?

Just type .frame + the abbreviations of the properties you need (e.g. w for width, wh for width and height, …) and let autocomplete do the work for you!

Dominik Hofer
Dominik Hofer

.@thatsfinsweet has many great Webflow products that I love to use (available for free!).

But my absolute favorite is Attributes: Whenever I need something that's not possible in Webflow, chances are that there is an attribute that exactly solves my problem.

Feels like magic ✨

Show thread (2 posts)

Follow

RSS Feeds