Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/capturecontext/swift-cocoa-extensions

Standard extensions for Cocoa
https://github.com/capturecontext/swift-cocoa-extensions

appkit cocoa cocoatouch essentials extensions macros spm swift swift-macros swift-package-manager uikit

Last synced: about 21 hours ago
JSON representation

Standard extensions for Cocoa

Awesome Lists containing this project

README

        

# swift-cocoa-extensions

[![CI](https://github.com/CaptureContext/swift-cocoa-extensions/actions/workflows/ci.yml/badge.svg)](https://github.com/CaptureContext/swift-cocoa-extensions/actions/workflows/ci.yml) [![SwiftPM 5.9](https://img.shields.io/badge/swiftpm-5.9-ED523F.svg?style=flat)](https://swift.org/download/) ![Platforms](https://img.shields.io/badge/Platforms-iOS_13_|_macOS_10.15_|_Catalyst_13_|_tvOS_14_|_watchOS_7-ED523F.svg?style=flat) [![@maximkrouk](https://img.shields.io/badge/[email protected]?style=flat&logo=twitter)](https://twitter.com/capture_context)

Standard extensions for Cocoa

> The package is in beta (feel free suggest your improvements [here](https://github.com/capturecontext/swift-cocoa-extensions/discussions/1))
>
> But we do respect semantic versioning 😉

## Installation

### Basic

You can add CocoaExtensions 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.git"`](https://github.com/capturecontext/swift-cocoa-extensions.git) into the package repository URL text field
3. Choose products you need to link them to your project.

### Recommended

If you use SwiftPM for your project, you can add StandardExtensions to your package file.

```swift
.package(
name: "swift-cocoa-extensions",
url: "https://github.com/capturecontext/swift-cocoa-extensions.git",
.upToNextMinor(from: "0.4.0")
)
```

Do not forget about target dependencies:

```swift
.product(
name: "CocoaExtensions",
package: "swift-cocoa-extensions"
)
```

```swift
.product(
name: "CocoaExtensionsMacros",
package: "swift-cocoa-extensions"
)
```

## License

This library is released under the MIT license. See [LICENSE](LICENSE) for details.