Category: Swift5.7
-
Design Challenge
So, I’ve been working on translating the UI design created by the external designer into SwiftUI, and have done all of the easy bits: The rounded rectangles for things like the question display/number input are just ZStacks of roundedrects filled, then stroked: Something I have learned in the process is the .offset modifer. This is…
-
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…
-
Times Tables -Day 35 Challenge
The challenge for Day 35 of 100 Days of Swift UI was to create a simple times tables drilling app. I’ve met all the requirements, so I’ll move on, but I am struck by how ugly it is. Making better looking apps needs to be added to my goals. Especially since this app is intended…
-
User Defaults & Horizontal Pickers
I’m on the challenges for Day 35 of 100 Days of SwiftUI, and despite Paul’s very clear warning: Important: It’s really easy to get sucked into these challenges and spend hours… I have spent ages fiddling around, but of course still learning. My issue is not so much getting stuck on bugs, rather I keep…
-
Ranges
I wondered aloud, in a previous post, about the differences in writing a range as versus And that’s been answered in in one of the Day 34 articles. It sounds like older versions of Swift might not have allowed the second version.
-
Animating Guess The Flag
The challenges for Project 6 of 100 Days of SwiftUI was to add some animations to the Guess the Flag app from a little while ago. The animations themselves were not particularly tricky, my main issue was that I was creating the views for the three flags in a ForEach, so the animations were applied…
-
Animations in Views
It’s a very Apple-thinking thing to be learning about making beautiful and intuitive user experiences this early in a programing tutorial as I am with the 100 Days of Swift UI series. Here’s a quick look at three different ways of doing animation in SwiftUI Views. Implicit animation An implicit animation in SwiftUI is when…
-
Word Scramble Feedback
As is my practice now, after completing the challenges for Project 5, I reviewed Paul’s solution (which is only available to subscribers) to see what he’d done better so I could learn from it. Most of the differences where not of much significance, but there was a couple of things I picked up: When the…
-
Project 5 – Word Scramble
Another 100 Days of Swift UI project wrapped up – this time a scrabble like word game. New techniques included saving a large text file in the app bundle and loading it (via a string) into an array on launch of the view. Also a short adventure into UIKit to use a UITextChecker. Source.