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 90 #100DaysOfSwiftUI

βœ… Building the Flashzilla project (III)

πŸ”‘ takeaways:
πŸ‘‰ prepare() haptic feedback generator
πŸ‘‰ Don’t use haptic feedback too much
πŸ‘‰ You can add a dismiss function to sheets

Show thread (2 posts)
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)
Dominik Hofer
Dominik Hofer

Day 80 #100DaysOfSwiftUI

βœ… Overview of the HotProspects project (II)

πŸ”‘ takeaways:
πŸ‘‰ objectWillChange is for manually publishing changes from classes
πŸ‘‰ Use .result on a Task to simplify code (returns either return type or error)
πŸ‘‰ SwiftUI automatically interpolates images

Show thread (2 posts)
Dominik Hofer
Dominik Hofer

Day 79 #100DaysOfSwiftUI

βœ… Overview of the HotProspects project (I)

πŸ”‘ takeaways:
πŸ‘‰ @ EnvironmentObject makes data accessible to child views, use it with .environmentObject modifier
πŸ‘‰ TabView is a parent view for your whole app, it uses the .tabItem modifier

Dominik Hofer
Dominik Hofer

The new default SwiftUI view now features an icon.

Spotting this little change is a great reminder of how far I've already come on my #100DaysOfSwiftUI journey!

Dominik Hofer
Dominik Hofer

Uno #011

If you are a dev, you probably use the terminal pretty often. The best one in my opinion is Hyper by @vercel.

Built with HTML, CSS & JS and therefore easily extensible with plugins and customizable with gorgeous themes.

Here's mine, love the clean look:

Show thread (2 posts)
Dominik Hofer
Dominik Hofer

Day 78 #100DaysOfSwiftUI

βœ… Extended personal CRM app with location feature

Learned how to use the TabView view and also finally understood what .constant() is for πŸ€“

Dominik Hofer
Dominik Hofer

Day 77 #100DaysOfSwiftUI

βœ… Built a little personal CRM app

Finally got around to finishing this one. The UI part wasn't that hard (although it isn't anything fancy).

But saving the image was harder than I thought. Luckily, I found a helpful Github repo πŸ€“

Show thread (2 posts)
Dominik Hofer
Dominik Hofer

Uno #010

As you probably know, I'm currently learning SwiftUI and getting into iOS dev. And if I like one thing in particular, it's the great community around the topic.

A great resource to discover apps made by fellow indie hackers is @AppAirport. I love exploring them!

Show thread (2 posts)

Follow

RSS Feeds