Complex Interfaces

Starting this chapter, I remember when I was tasked with implementing a Collection View inside a TableView row, configure the data sources (this was before Diffable Data Sources) and display the concept to a client. Seeing this again I got a little shake of fear 😨

I did steer my app into differences here, there are different types of ‘Spotz’ one may find themselves in: a spot for Biking, Historical, a Field, Playground, or Pond.

One thing I noticed, when I went to create an HStack or Stack, the system would autocomplete:

And the learning material has it as such:

It kind of scratches me the wrong way. The parameter ‘content’ is not really necessary here, I wish there was a way to omit that and have autocomplete suggest the method signature I prefer & keep it that way.
I’m not really feeling the SwiftUI Inspector which is available by CTRL-clicking on the View or Stack. Typing feels more natural and I’d like a solution that works that way.

Another small diversion I made was to the property, on the object ‘Landmarks’, our ‘Spot’ has no feature. We are instead interested if we hadVisited a Spot, or not. If you are following me, add the property on the ‘Spot’ where they add ‘isFeatured’, we add ‘hadVisited’.

Standard

Leave a comment