Swift UI Challenge Day

Posted on Mon 21 June 2021 in swift • Tagged with swift, swiftui

Fun day today with 100 Days of SwiftUI. The core challenge was very easy, a simpler version of the PaperWeight app I've been making with Nicholas.

However, after completing the basic challenge I decided to try using Measurement class to do my conversions. It worked fine, and made for a …


Continue reading

Swift UI Project 1, Day 3

Posted on Sun 20 June 2021 in swift • Tagged with swift, swiftui

One more day of 100 Days of SwiftUI done. I suppose this intro stuff will start getting boring, I'll have to come up with a better way of introducing my blog entries.

Today we reviewed the WeSplit app and did a few challenges. Everything was quite simple and straightforward. I …


Continue reading

Swift UI Project 1, Day 2

Posted on Sat 19 June 2021 in swift • Tagged with swift, swiftui

Another day of 100 Days of SwiftUI on the books. Today we built the WeSplit UI and wired everything up.

My only significant change to today's work was using a NumberFormatter to display the amount per person instead of using a c-style format string. I see that Apple added new …


Continue reading

Swift UI Project 1, Day 1

Posted on Fri 18 June 2021 in swift • Tagged with swift, swiftui

Back into blogging! I'm starting up 100 Days of SwiftUI again, picking up where I'd previously left off.

I've already shipped one app built in SwiftUI, but it's a really simple app with no networking or state. After WWDC this year, I got inspired and found that I wanted to …


Continue reading

Swift Optionals

Posted on Thu 20 February 2020 in swift • Tagged with swift

Today I'm doing 100 Days of Swift at 36,000 feet, flying from SF to New York, to go to a retreat with the Visipedia folks at Cornell Tech. The good news is that there's free WiFi on the flight, so I was able to watch the youtube videos. The …


Continue reading

Swift Protocols & Extensions

Posted on Wed 19 February 2020 in swift • Tagged with swift


Another late day of 100 Days of Swift today, I spent all day grinding on iNat vision stuff. Hopefully some of the visualizations from that will make their way into a new blog post soon.

Today was protocols & extensions, super awesome features in Swift. I was lucky to be at …


Continue reading

Swift Classes

Posted on Tue 18 February 2020 in swift

Late day of 100 Days of Swift today, too much work and other stuff to do. I'll just do a short blog post.

I didn't realize that super.init() is always required in the init method of subclasses. Probably healthy, it's part of the Objective-C boilerplate.

Also, I've noticed some …


Continue reading

Structs, part 2

Posted on Mon 17 February 2020 in swift • Tagged with swift

Another day of 100 Days of Swift in the books! Today I finished the section on structs. I'd forgotten a few things, so let's dive in.

In Objective-C, we typically implement lazy variables by making them computed properties, so I'm not used to thinking about these concepts separately. However, here's …


Continue reading

Structs, part 1

Posted on Sun 16 February 2020 in swift • Tagged with swift

I'm done with a full week of 100 Days of Swift! For some reason, structs make me happy. I just like them. They were exotic and cool when I was learning C to hack on the Linux kernel. They're still cool today, now that value types and immutability are the …


Continue reading

Closures, part 2

Posted on Sat 15 February 2020 in swift • Tagged with swift

Another day of 100 Days of Swift, with more closure confusion this time. Closure syntax is complicated on its own, without even considering all of the shorthand and optional syntactic structures, from trailing closure syntax. The confusion is compounded by the way that the Xcode editor will suggest some shorthand …


Continue reading