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: 4 months ago
JSON representation
Standard extensions for Cocoa
- Host: GitHub
- URL: https://github.com/capturecontext/swift-cocoa-extensions
- Owner: CaptureContext
- License: mit
- Created: 2022-04-17T17:45:03.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-02-29T02:07:17.000Z (over 1 year ago)
- Last Synced: 2025-03-10T07:52:46.704Z (4 months ago)
- Topics: appkit, cocoa, cocoatouch, essentials, extensions, macros, spm, swift, swift-macros, swift-package-manager, uikit
- Language: Swift
- Homepage:
- Size: 86.9 KB
- Stars: 4
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# swift-cocoa-extensions
[](https://github.com/CaptureContext/swift-cocoa-extensions/actions/workflows/ci.yml) [](https://swift.org/download/)  [](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.