The last day of my run through!
I get to run the completed application.
Tomorrow I’ll start going through Paul Hudson’s Hacking Swift tutorials.
The last day of my run through!
I get to run the completed application.
Tomorrow I’ll start going through Paul Hudson’s Hacking Swift tutorials.
Work got busy and then the Country’s Capital got attacked so I didn’t put any time into my programming.
Well. It’s time to get back to it. I don’t want not working on my task to be a habit!
Purpose: Create a simple view for the history of the the user’s scrums.
The tutorial certainly reads very well, but every once in a while, you run into a scenario where I feel that they probably could have made it a little better. For example, in the history view we give the preview a string for the preview. The website doesn’t read very well in the browser page that it’s on.
Of course, it looks a lot better when it is in Xcode.
I couldn’t stop messing with the code because I wanted the properties for this thing to stick out.
I’m hoping that if I start using source control for this, I’ll be able to go back and refactor a little easier. This might just be attempting to optimize for something that doesn’t need to be optimized.
I need to do some research on how the extension keyword works in swift and at what point.
I think I understand that we placed it here because no other view needs to do a translation of the attendees array. A discussion on refactoring is most likely not going to be part of this tutorial.
I’m going to finish the last section tomorrow.
Any beginning to intermediate tutorials that anyone would recommend? I’m doing a slow series of training myself to understand swift and swiftui. π¨πΎβπ»
This is the last section of the tutorial.
There were a lot of distractions today, but I’m going to finish this so that I can move on.
Purpose: Introduce the code that will allow the application to record speech.
Although the time to go through this is pretty quick, you would really want to go back and take your time to understand how it’s calling access.
Purpose: Learn about dynamically toggling interface elements to let the user know that they are being recorded.
It was pretty fun to do this section, but I’m still reminded that I don’t like ternary statement. The reason for this is that the question mark means it’s an optional if it’s next to the variable but it’s a ternary if it’s not. The rest of the statement should let the developer know, but if you are new or coming back to an old code…
I donβt feel like doing development today. I got to push through some how.
This is the last section of the tutorial and I’m wondering what I’m going to do after this. I’m going to just do one section today because tomorrow is a big work day.
Purpose: Show how to get use of the phones different functionalities like control of the mic.
The first step is to click the “Add (+)” button but it doesn’t show up unless you have the mouse over one of the properties that are already defined. The interface has a lot of white space that could have been used for something like this and it’s a little misleading.
This is the first time I’ve seen autocomplete not work because of case sensitivity.

I’ve been working towards learning swift a little more everyday and blogging about it. I was hesitant that it would annoy my readers and that I was spending more time writing about me learning swift versus actually learning it.
At this point, I feel that it’s really helped.
Yesterday, I stopped so that I could spend time with my family. I’m going to pick up from the draw an arc spot.
Purpose: Learn about drawing in the application
The tutorial gives me a really good example for a computed property.
private var degreesPerSpeaker: Double {
360.0 / Double(totalSpeakers)
}
Purpose: Display the various segments for the speakers.
The following statement just looks wrong.
if speaker.isCompleted,
let index = speakers.firstIndex(where: { $0.id == speaker.id }) {
}
Are you really saving something by omitting the { and }?
Today’s tutorial is about drawing. I’m almost done going through the entire tutorial and wondering what I should look at next.
The code is pretty self explanitory until you get to places where Swift likes to pour on that sweet, sweet clusure syntax.
private var currentSpeaker: String { speakers.first(where: { !$0.isCompleted })?.name ?? "Someone" }
I had to read that line outloud to fully understand it. My brain had more question marks than the line itself. Luckily, I’ve accustomed to optionals thanks to working with Paul Hudson’s tutorials.
Also, there were some wins for the documentation popups.
Purpose: Create a drawing on top of the circle.
I’m going to stop here because I want to spend some time with my family before bed. It’s my last night of vacation.
I donβt know if this is new but seeing the notifications builds trust that itβs working. I say this after seeing it pop up once.