Swiftpack.co - shibiao/Popover as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by shibiao.
shibiao/Popover 1.4.0
fork 自 https://github.com/iSapozhnik/Popover
⭐️ 1
🕓 3 years ago
macOS
.package(url: "https://github.com/shibiao/Popover.git", from: "1.4.0")

Popover

A description of this package.

因项目的需要 对iSapozhnik Popover 进行细微的修改, 感谢https://github.com/iSapozhnik/Popover

使用方法 和 https://github.com/shibiao/Popover 里swift packages一样, 新添加了对已存在的NSStatusItem的嵌入方法 ,而非由Popover底层创建

public func prepare(with statusItem: NSStatusItem, contentViewController viewController: NSViewController)

Install

Since this is a Swift Package, the installation process is pretty stright forward.

Manual way

Update your Package.swift dependencies:

dependencies: [
    .package(url: "https://github.com/shibiao/Popover", from: "1.4.0")
]

Via Xcode:

  1. Go to File -> Swift Packages -> Add Package Dependency.
  2. Put GitHub URL https://github.com/shibiao/Popover and click Next
  3. Select the latest version
  4. Click Finish

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