Swiftpack.co - achernoprudov/MenuBuilder as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by achernoprudov.
achernoprudov/MenuBuilder 1.0.0
DSL for UIMenu
⭐️ 0
πŸ•“ 2 years ago
iOS
.package(url: "https://github.com/achernoprudov/MenuBuilder.git", from: "1.0.0")

MenuBuilder

Unit Test

DSL for building UIMenu in a simple way.

Supports:

  • β˜‘ hierarhical menu
  • β˜‘ if/else conditions
  • ☐ loops

Example:

UIMenu {
    UIAction("Open") { ... }
    UIMenu("Edit") {
        UIAction("Duplicate", icon: "doc.on.doc") { ... }
        UIAction("Delete", icon: "xmark.bin") { ... }
    }
}

Install

Swift Package Manager

The Swift Package Manager is a tool for managing the distribution of Swift code. It’s integrated with the Swift build system to automate the process of downloading, compiling, and linking dependencies.

Once you have your Swift package set up, adding SwiftDI as a dependency is as easy as adding it to the dependencies value of your Package.swift:

Swift 5

dependencies: [
    .package(url: "https://github.com/achernoprudov/MenuBuilder.git", from: "1.0.0")
]

GitHub

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

Release Notes

First release
2 years ago

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