/tag

#tweet

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)
Dominik Hofer
Dominik Hofer

Day 76 #100DaysOfSwiftUI

✅ Did some a11y reviews on my own

Pretty much consisted of spotting the issue (the hardest part) and then hiding elements and/or providing declarative labels.

Also scored 12/12 on the review test, which made me quite proud 😇

Dominik Hofer
Dominik Hofer

One of my favorite things to do after an #AppleEvent is browsing the new product websites.

Always so many delightful details to discover ✨

Dominik Hofer
Dominik Hofer

Day 74 #100DaysOfSwiftUI

✅ Intro to a11y

🔑 takeaways:
👉 Use labels to describe content
👉 Decorative images
👉 Hide unimportant elements to VoiceOver users
👉 .accessibilityElement()
👉 use .accessibilityAdjustableAction to give VoiceOver users custom actions

Show thread (2 posts)
Dominik Hofer
Dominik Hofer

Day 73 #100DaysOfSwiftUI

✅ Added some additional features on my own

Another project done 🥳

The main task here was to refactor the EditView to conform to MVVM. I found the initialization in the view itself quite interesting:

Dominik Hofer
Dominik Hofer

Is there a similar course to #100DaysOfSwiftUI but for #React or #Typescript?

Really like this format and I learn quite well with it 👨‍💻

Follow

RSS Feeds