SF Symbols is a fantastic collection of icons for almost any situation, but even though it now contains close to 4500 symbols, you might find yourself in need of a very specific icon that is not part of the collection.
I was not aware that you can create your own SF Symbol, and the process that David Smith describes sounds reasonably simple. There are definitely a couple of icons in one of the apps I am working on that should be trivial to create using this approach.
Naming is hard, and we can assume that the SwiftUI team went through several iterations for a good name for the
View protocol. In my book, I wrote that "everything is a view - except that it isn't":
However, it is worth noting that when SwiftUI talks about Views, it doesn’t refer to the specific instances of a UI element on the screen, but rather a description of that element.
In fact, it might have been easier if the SwiftUI team had decided to say “everything is a view description”—but of course, that’s not as catchy.
In this article, Chris argues that
Views actually are lists, and provides a couple of examples. Thought-provoking, and really worth reading.
Search is an important feature for any app that shows a list of more than a handful of items. Thanks to the
.searchable view modifier, implementing a search feature in a SwiftUI app is a lot easier than it used to be, and it even got better in iOS 16. Alex goes through some of the new features such as suggestions and scopes, and shows how he used them in his Pulse app.