@twostraws Day 51 of #HackingWithSwiftUI got a bit confusing because reqres.in seems to have added a requirement for a faux api-key to send back data.

I had to add the line:

request.setValue("reqres-free-v1", forHTTPHeaderField: "x-api-key")

directly under the Content-Type header to get things to run as expected.

Before that I was only getting back the rather oblique error:

Checkout failed: The data couldn’t be read because it is missing.

Very satisfying when I got it working tho!

Well it took like 5 or 6 hours and it's not exactly a tour de force, but it works and completes the Day 46 assignment? Struggled mightily with multiple alerts in the toolbar.

(If you try and use an if statement in a .toolbar, it causes an extremely vague error message about “ambiguous content”. Use the ternary operator.)

Features:
- Increment/Decrement/Delete activities
- Add new activities with Save/Cancel toolbar
- Edit/View Details with Save/Cancel toolbar

#HackingWithSwiftUI @twostraws

Thinking about starting to build iOS apps again…

I still enjoy building things for the web, but since it's my day job, I want to switch things up a bit for my personal projects. Plus, Swift is just a beautiful language 😍

I already completed #hackingwithswiftui in 2022. What are the most notable changes since then that I need to catch up with?

#iosdev #swiftui #buildinpublic

Having a lot of fun with #HackingWithSwiftUI! I've been upgrading the tutorial games with a lot of my own personal challenge things. You can now do 260 flags in the Flags game (via a Dictionary lookup instead of images) and the WordScramble has a Timer countdown and bunch of stuff like disabling autocorrect and setting the focus back to the text field automatically after each word. @twostraws
https://www.hackingwithswift.com/100/swiftui

Finished Day 22 of #hackingwithswiftui

Man it feels good to complete the challenges without any hints.

Do I get *double* points for type setting my constants @twostraws? #swift #swiftui #hackingwithswiftui
I blame @lonnekemennen for stopping the video _before_ @twostraws mentions that you should brute force the solution 😛
#HackingWithSwiftUI

And she just joined Mastodon to start posting how learning SwiftUI is going, and that is the first post she sees 😂 #HackingWithSwiftUI

Welcome @lonnekemennen! 👋

My wife is starting on #HackingWithSwiftUI;
“I finally know who this Jason person is you folks keep talking about!”
🤣

I have completed Day 10 of #hackingwithswiftui.

Very interesting language