Swiftpack.co - elegantchaos/Labelled as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by elegantchaos.
elegantchaos/Labelled v1.0.8
SwiftUI protocol for things that can return their own label/icon.
⭐️ 0
🕓 1 year ago
iOS macOS watchOS tvOS
.package(url: "https://github.com/elegantchaos/Labelled.git", from: "v1.0.8")

Test results Latest release swift 5.3 shield swift 5.4 shield swift 5.5 shield swift dev shield Platforms: macOS, iOS, tvOS

Labelled

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.

GitHub

link
Stars: 0
Last commit: 1 year ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

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