Discovered a handy feature in Xcode by accident:
When holding down CMD, you can click on a variable and refactor it.
See example below π
Discovered a handy feature in Xcode by accident:
When holding down CMD, you can click on a variable and refactor it.
See example below π
One simple trick I learned in therapy:
If you're unsure what your gut feeling is (because you tend to overthink things), simply flip a coin. πͺ
The answer you hope for shortly before the coin hits your hand is usually the right one.
One of my all-time favorite quotes:
βThe best time to plant a tree was 20 years ago. The second best time is now.β
βChinese proverb
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 π
Good morning to everyone working on their own projects today βοΈ
(Btw, share them below, I'm curious!)
Finally working on my personal website.
Will share some snapshots on here, so stay tuned!
Show thread (2 posts)
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 π
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
The best product ideas always come from scratching your own itch.
Nobody is better at solving your own problems than yourself.
The @webflow newsletter is one of my favorite resources to learn about new tools & beautiful sites.
Always looking forward to the next issue π
4 habits to make you better each day:
π§ββοΈ meditate
πͺ exercise
βοΈ journal
π read
Anything you would add?
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β π
Constraints spark creativity. https://xcancel.com/dominikhofer_/status/1529115013822050304/photo/1
Day 5 #100DaysOfSwiftUI
β
If/else
β
Switch
β
Ternary operator
π takeaways:
π Switch blocks must be exhaustive
π For ternary operators, remember WTF: What ? True : False
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! π
The best products are not those that are simply good, but those that take whatβs already out there and make it better.
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.
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 π‘
Reframe your thinking: You're not bad at something. You're just new to it.
Embrace the beginner's mindset.
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
2022 is already halfway over. Here's a goal I want to reach by the end of it:
Making 1$ online with my own iOS app.
βWithout activity, we are lifeless and dull. When moving fast and taking action, we come alive.β
β @JamesClear
How do you make sure that the ideas you have are actually saved somewhere?
Do you have a system for that?
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 π
Day 1 #100DaysOfSwiftUI
β
Variables
β
Constants
β
Strings
β
Numbers
π takeaways:
π Use constants whenever possible
π Type safety is a very helpful feature of Swift
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.
Today, I started my iOS dev journey with #100DaysOfSwiftUI (day 0)
Watched a video that answered some basic questions around iOS development. @twostraws did a really great job with making me excited for what's to come π
https://xcancel.com/dominikhofer_/status/1536422578289377286
Many problems in our lives come from our non existent ability to delay gratification. And our short attention span.
The Tiktok effect.
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 βοΈ
Anyone remember what this CSS snippet did? π€
.clearfix::after {
content: '';
display: table;
clear: both;
}
Todays @Webflow π:
Hitting this little button in the top right of the spacing accordion centers an element (with margin: 0 auto).
Conclusion:
Starting small, learning and leveling up over time is better than going all in and betting on the wrong things. https://xcancel.com/vvtraining/status/1536019519835197443
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 π₯°
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.
Is it true that @NotionHQ doesn't have a search and replace function? Or am I missing something?
When you're tired of paying Adobe just to edit some simple PDFs β I got you π
https://www.ilovepdf.com
A true life pro tip, that instantly improves your mental well-being:
Don't be too harsh on yourself.