More Work with Codable

Posted on Mon 12 July 2021 in swift • Tagged with swift, swiftui, generative-art

Yay, another easy day of 100 Days of SwiftUI! I'm on day 40, that seems like a lot of days.

Only one thing was really new to me technically: using a DateFormatter to make a custom .dateDecodingStrategy for JSONDecoder is kinda cool, for those times when you can't just use …


Continue reading

Moonshot Project Intro

Posted on Sun 11 July 2021 in swift • Tagged with swift, swiftui, generative-art

Man, it's ups and downs all week. I'm mentally doing well but struggling physically today. Happily, I've stuck with 100 Days of SwiftUI and gotten another day done.

I'd only just started exploring GeometryReader in my generative art experiments recently, so it was nice to see it introduced in 100 …


Continue reading

iExpense Project Wrap-up

Posted on Sat 10 July 2021 in swift • Tagged with swift, swiftui

I'm feeling a little better today, jamming to KEXP and working on some 100 Days of SwiftUI.

The challenges today were fun, although two of them highlighted more general issues I'm having with SwiftUI: - Adding text styling based on the amount was simple enough, but as far as I can …


Continue reading

SwiftUI Project 7, Day 2

Posted on Fri 09 July 2021 in swift • Tagged with swift, swiftui

I'm dragging today, couldn't sleep at all last night. At some point I got up to get a glass of water and realized I was having migraine aura. I didn't have much headache, but some tightness and lots of visual artifacts. I finally got to bed around 5am and took …


Continue reading

SwiftUI Project 7, Day 1

Posted on Fri 09 July 2021 in swift • Tagged with swift, swiftui

Late night tonight. I didn't get to a session of 100 Days of SwiftUI with everything else that was going on, so I started it near midnight.

I'd used the @ObservableObject property wrapper before, but I'm not sure I totally understood what made it different from @State, despite the obvious …


Continue reading

SwiftUI Consolidation 3

Posted on Wed 07 July 2021 in swift • Tagged with swift, swiftui

I'm kind of in a mental fog today, too many meetings and not enough actual coding lately. But I did find a little time for 100 Days of SwiftUI.

I was encouraged to read Paul's mention of the cognitive speed bump when transitioning from imperative to declarative UI programming. He …


Continue reading

Implementating SwiftUI Animations

Posted on Tue 06 July 2021 in swift • Tagged with swift, swiftui

I got a little more 100 Days of SwiftUI done today.

The challenges today were the hardest for me yet in this 100 Days of SwiftUI thing. Not technically hard, more in terms of how to think about adding animation to a view or transition. I've gotten comfortable thinking about …


Continue reading

More SwiftUI Animations

Posted on Mon 05 July 2021 in swift • Tagged with swift, swiftui

Two small wins today: - I worked from a coffee shop for an hour, and - I got another day of 100 Days of SwiftUI done.

We covered more animation with SwiftUI today, and most of it was brand new to me. One hiccup I ran into: the SwiftUI preview canvas in …


Continue reading

SwiftUI Animations

Posted on Sun 04 July 2021 in swift • Tagged with swift, swiftui

It's the Fourth of July, but I managed to squeeze in some 100 Days of SwiftUI work today.

We went over animation basics in SwiftUI, which was the first time in this 100 Days journey that the content was almost entirely new to me.

Doing explicit animations using withAnimation() was …


Continue reading

SwiftUI Project 5, Day 3

Posted on Sat 03 July 2021 in swift • Tagged with swift, swiftui

One more 100 Days of SwiftUI project in the books today.

The most interesting bit of the challenges for Project 5 was calculating the score - for me it seemed like a case for using swift's reduce function. I don't do a lot of functional programming (any, really) so I don't …


Continue reading