Alex Does Things Poorly

Alex does a variety of things poorly - swift, data science, datavis, ML, drawing, AR, unity, etc, etc.

2 July 2021

SwiftUI Project 5, Day 2

by alex

One more day of 100 Days of SwiftUI on the books.

Still not much new in terms of SwiftUI features. I liked the pattern of guard and simple functions returning booleans as validation for the text input. It was definitely cleaner than stuffing the error alert creation into the validation functions.

I also hadn’t seen the onCommit: parameter of TextField before, nice to know about that.

tags: swift - swiftui