Swiftpack.co -  Package - franklynw/FWCommonProtocols
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
franklynw/FWCommonProtocols
Protocols common to my other Swift packages
.package(url: "https://github.com/franklynw/FWCommonProtocols.git", from: "1.0.0")

FWCommonProtocols

Protocols used by my various Swift Packages

ImageNaming

var systemImageName: String { get }

This allows you to (for instance) define an enum with cases for the different system images you want to use, and use them as parameters for some of my other Swift package functions.

String is also conformed to this protocol, so you can just use a String if you prefer.

License

FWCommonProtocols is available under the MIT license

GitHub

link
Stars: 0
Last commit: 9 weeks ago

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco