Dominik Hofer
Dominik Hofer

Day 32 #100DaysOfSwiftUI (Back at it again)

βœ… Learned about implicit & explicit animations

πŸ”‘ takeaways:
πŸ‘‰ Implicit animations are the easiest ones (.animation() modifier)
πŸ‘‰ Easing functions can use modifiers as well
πŸ‘‰ For explicit animations, wrap with withAnimation

Dominik Hofer
Dominik Hofer

Gonna take a 5-day break from #100DaysOfSwiftUI as I am going on vacation, starting today.

Will be back though ✌️

Dominik Hofer
Dominik Hofer

Uno #003

Let's talk about colors 🎨

ColorBox is a handy tool by @kvyn_ for creating color schemes for your UI designs (Tailwind style).

Takes a bit of getting used to but once you get it, you'll always wanna use it. It even supports export to @figma!

Show thread (2 posts)
Dominik Hofer
Dominik Hofer

Day 31 #100DaysOfSwiftUI

βœ… Added some additional features on my own

The score is calculated by multiplying the number of words with the total number of letters in all answers. The score turns green when you reach 100 or more points (which isn't that easy let me tell you πŸ˜‚)

Dominik Hofer
Dominik Hofer

Day 30 #100DaysOfSwiftUI

βœ… Built the WordScramble project

πŸ”‘ takeaways:
πŸ‘‰ .onSubmit() modifier
πŸ‘‰ withAnimation closure for β€œsmoothly” entering new data
πŸ‘‰ Use .onAppear() modifier to execute code on launch
πŸ‘‰ guard let is very useful with boolean returning functions

Show thread (2 posts)
Dominik Hofer
Dominik Hofer

Day 29 #100DaysOfSwiftUI

βœ… Overview of the WordScramble project

πŸ”‘ takeaways:
πŸ‘‰ The list view is used extensively for displaying data
πŸ‘‰ Resources get put into an app bundle
πŸ‘‰ You can even spellcheck your words with UITextChecker() (although it has a pretty clunky API…)

Dominik Hofer
Dominik Hofer

Day 28 #100DaysOfSwiftUI

βœ… Added some additional features on my own

I actually quite like the result, it's simple but still looks very β€œiOS-like” and nice. It's great to see how comparatively easy it is to create fully functional apps. And the ml part still blows my mind 🀯

Dominik Hofer
Dominik Hofer

Day 27 #100DaysOfSwiftUI

βœ… Built the BetterRest project

πŸ”‘ takeaways:
πŸ‘‰ .toolbar modifier to add an β€œaction” to view
πŸ‘‰ Imported ml models auto generates class
πŸ‘‰ To read a property whenever we want, make it static

Not that beautiful yet, but the ml part is amazing!

Dominik Hofer
Dominik Hofer

Day 26 #100DaysOfSwiftUI

βœ… Overview of the BetterRest project

πŸ”‘ takeaways:
πŸ‘‰ Stepper & Slider are ways to enter numbers
πŸ‘‰ Dates are hard to work with, but Swift provides handy abstractions
πŸ‘‰ You can easily create your own machine learning models with Create ML!

Dominik Hofer
Dominik Hofer

Day 25 #100DaysOfSwiftUI

βœ… Built a simple rock, paper, scissors app

This was a great project to recap some of the learnings from the past few days!

One thing I'm particularly proud of is the way I handled the validation: It's a dictionary with all the winning pairs.

Dominik Hofer
Dominik Hofer

Uno #002

Today's tool is a handy little site called copypastecharacters.

Whenever you need some special characters like ⟑, ο£Ώ, ⌘ or βŒ₯, just get them from there. One click to copy them to your clipboard.

πŸ‘€ Pro tip: Save frequently used symbols as snippets in @raycastapp

Show thread (2 posts)
Dominik Hofer
Dominik Hofer

Day 24 #100DaysOfSwiftUI

βœ… Repetition of yesterday's topics on my own

Although days like these require a bit more brainpower than just following tutorials, I really learned to like them. They are exactly what you need to let concepts sink in.

Kudos to @twostraws πŸ‘

Dominik Hofer
Dominik Hofer

Day 23 #100DaysOfSwiftUI

βœ… Custom views & modifiers

πŸ”‘ takeaways:
πŸ‘‰ Modifiers create a new view β†’ order matters
πŸ‘‰ Use ternary operator for conditional modifiers
πŸ‘‰ Environment modifier gets applied to all children
πŸ‘‰ You can create custom views & modifiers for reusability

Dominik Hofer
Dominik Hofer

Day 22 #100DaysOfSwiftUI

βœ… Added some additional features on my own

For this challenge, I already had to google some things, which I think is a great sign! I actually really like that during this course, I get to work on things on my own. Prepares me for my own projects.

Dominik Hofer
Dominik Hofer

Learning the shortcuts of your most-used programs has a really big roi.

Nothing beats being able to do your work mostly without using your mouse.

Dominik Hofer
Dominik Hofer

Currently going through the Final Cut Pro X Skillshare class by @AliAbdaal and only a few lessons in, I've already picked up what is probably the most useful tip for video editing πŸ‘‡

The I-O-E (shortcuts) workflow for assembling an a-cut.

Dominik Hofer
Dominik Hofer

Day 21 #100DaysOfSwiftUI

βœ… Built the GTF project

πŸ”‘ takeaways:
πŸ‘‰ Use .shuffled() for a randomized array
πŸ‘‰ .font() modifier is for changing the look of text (uses dynamic type)
πŸ‘‰ Use multiple Spacer() to distribute space

Learned a ton about custom styling in this project!

Dominik Hofer
Dominik Hofer

Day 20 #100DaysOfSwiftUI

βœ… Overview of GTF project

πŸ”‘ takeaways:
πŸ‘‰ Use stacks for returning multiple views
πŸ‘‰ Colors & gradients are views as well
πŸ‘‰ Image(systemImage: "xy") for icons
πŸ‘‰ Create alerts bound to state variable

Also, this is the most beautiful view ever 😍

Dominik Hofer
Dominik Hofer

The /turn command in @Notion is so useful, go try it out!

Or am I the only one who only recently learned about it? πŸ₯²

Dominik Hofer
Dominik Hofer

Day 19 #100DaysOfSwiftUI

βœ… Built a simple converter app

That's it, my first iOS app I built on my own, from scratch!

The conversion was probably the hardest part. The tip with converting to a base unit helped a ton.

Also, notice how the label changes at the bottom πŸ‘€

Dominik Hofer
Dominik Hofer

Day 18 #100DaysOfSwiftUI

βœ… Added some additional features on my own

I already love building UIs with SwiftUI! It's fascinating, how fast and easy you get Apple-like results.

Looking forward to building some more complex apps πŸ€“

Dominik Hofer
Dominik Hofer

I'm starting a little weekly series called β€œUno”.

Every Sunday, I'll share one simple tool that I regularly use (and you might not know).

Stay tuned ✌️

Dominik Hofer
Dominik Hofer

Just migrated my personal notes from Apple notes/Evernote to @craftdocsapp

Main reason is the daily notes feature (not available in many other apps but I love the concept).

Also, the design is just gorgeous 😍

Dominik Hofer
Dominik Hofer

Day 17 #100DaysOfSwiftUI

βœ… Built the WeSplit project

πŸ”‘ takeaways:
πŸ‘‰ Locale is a struct with localization infos
πŸ‘‰ @State automatically watches for changes
πŸ‘‰ NavigationView is often the top-level view
πŸ‘‰ Spacer creates a flexible space

Was a fun little project to work on!

Dominik Hofer
Dominik Hofer

Day 16 #100DaysOfSwiftUI

βœ… Overview of WeSplit project

πŸ”‘ takeaways:
πŸ‘‰ Everything in SwiftUI is a view
πŸ‘‰ Shortcuts: ⌘ + βŒ₯ + P; ⌘ + R
πŸ‘‰ Views are a function of their state
πŸ‘‰ Create two-way bindings with $

Dominik Hofer
Dominik Hofer

Day 15 #100DaysOfSwiftUI

βœ… Review day

Done with the fundamentals of Swift. Now onto learning SwiftUI, I am very excited!

Follow

RSS Feeds