Swiftpack.co - franklynw/FWCommonProtocols as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by franklynw.
franklynw/FWCommonProtocols 1.0.0
Protocols common to my other Swift packages
⭐️ 0
🕓 3 years ago
.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: 3 years ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

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