Skip to content

CaptureContext/swift-cocoa-extensions

Repository files navigation

swift-cocoa-extensions

CI

Standard extensions for Cocoa

Table of contents

Usage

Note

The package is in beta (feel free suggest your improvements here) But we do respect semantic versioning 😉

Installation

Basic

You can add swift-cocoa-extensions to an Xcode project by adding it as a package dependency

  1. From the File menu, select Swift Packages › Add Package Dependency…
  2. Enter "https://github.com/capturecontext/swift-cocoa-extensions" into the package repository URL text field
  3. Choose products you need to link to your project.

Recommended

If you use SwiftPM for your project structure, add swift-cocoa-extensions dependency to your package file

.package(
  url: "https://github.com/capturecontext/swift-cocoa-extensions.git", 
  .upToNextMinor("0.5.0")
)

Do not forget about target dependencies

.product(
  name: "<#Product#>", 
  package: "swift-cocoa-extensions"
)

Note

The package is compatible with non-Apple platforms, however it uses conditional compilation, so APIs are only available on Apple platforms

License

This library is released under the MIT license. See LICENSE for details.## Installation