A simple protocol for things that can supply their own SwiftUI label.
The label generally consists of a string, and an icon.
Items implementing the protocol can override labelName
and labelIcon
to supply these (the icon is assumed to be an SF Symbols image).
Alternatively they can implement label
directly to return a different kind of label.
link |
Stars: 0 |
Last commit: 1 year ago |
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics