Tag: 100daysofswiftui
-
Cupcake Corner Feedback
As usual, here’s my thoughts comparing my attempts at the challenges to Paul’s. Usually he’s better! 1) Whitespace The task was to validate the order address properties, not just by checking they are not empty, but also that they don’t just contain spaces. I went the bruteforce route since there was no .isEmptyIncludingWhitespace method. As…
-
Cupcake Corner challenges
Day 52 of #100Days was the challenges to the Cupcake Corner app – an app that allows you to build a one-row order, encode it as JSON and submit it to an API with a URLSession. To allow the order to be passed around, it’s an @ObservedObject which meant that a few extra hoops needed…
-
Top Four Reasons why @TwoStraws is a Good Teacher
Good Questions At various points in the 100 Days of SwiftUI course, you get asked sets of questions to check you’ve understood the preceding material. They’re usually presented as two different statements, one of which is true, and the other false. It’s actually a really good technique – the student feels like they’ve got a…
-
Day 47 – Habits App
I’ve been mucking around with the Habits app too long – it’s started to look like procrastination. It already meets the specification, so I’m calling it an MVP and moving on. This is the first app of mine I’ve loaded onto my phone and started using, and there are a couple of things I’d like…
-
Drawing Feedback
Here’s the summary of my learning from comparing my efforts with Paul’s solutions to the Project Nine challenges from Day 46 of his 100 Days of SwiftUI course. Create an Arrow shape – having it point straight up is fine. This could be a rectangle/triangle-style arrow, or perhaps three lines, or maybe something else depending…
-
Project 9 – Drawing
These few days of #100DaysOfSwiftUI we made some pretty shapes by playing around with some of the SwiftUI systems for drawing on the screen, including paths, shapes, transformations, ImagePaint, drawingGroup() to use Metal rendering, blurs, blend modes and using animatableData for animating – which I think is the solution to an animation problem in my…
-
Moonshot Feedback
I’ve watched Paul’s solution to the Moonshot challenges (the solutions are one of the perks of being a Hacking With Swift subscriber). When I’m solo learning like this its one of the few ways I can get any feedback on my coding, so I highly value it, and usually write one of these posts as…
-
Moonshot Challenges
Another few coding challenges at the end of a tutorial app in the 100 Days of SwiftUI course. The app is a sort of information app – composed of navigation views going down into more detail about the Apollo space missions. The most exciting revelation for me was how straightforward it is to pull JSON…
-
iExpense Feedback
I finally got around to looking at Paul’s solutions for the iExpense challenges. Use the user’s preferred currency, rather than always using US dollars. Same approach as me, .currency(code: Locale.current.currency?.identifier ?? “USD”) except that he does the work in a local variable which is a bit neater. Since it appears in two places – the…
-
iExpense Challenges
Day 38 is three challenges on the iExpense app – a simple expense tracking app that uses UseDefaults for storing it’s data. Locale Use the user’s preferred currency, rather than always using US dollars. One of the joys of modern programming (as opposed to mid-1990’s programming) is the ability of the internet to give you…