Categories
SwiftUI

SwiftUI Day 6 of 100 – Closures (part 1)

Today started with a warning that closures could be a bit confusing and are something that a lot of people find hard to understand. Probably an apt warning. The examples shown are easy enough to follow in isolation, but didn’t come with an explanation of why they exist or how they’re best used in Swift – basically just a message that they’re used frequently in SwiftUI, so get used to them. Fair enough, but I’m looking forward to seeing how they’re used in practice rather than just printing messages out to the console. Perhaps this lack of explanation is part of the downside of following a series of 60-second videos. They’re great for presenting a fairly simple and narrow concept, not so great for something that needs an explanation.

Interesting to note as well how the end-of-lesson tests are getting more challenging as the material is cumulative. I like the approach as it is definitely helping to reinforce some of the older material.

References

Leave a Reply

Your email address will not be published. Required fields are marked *