Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/capturecontext/swift-cocoa-extensions
- Owner: CaptureContext
- License: mit
- Created: 2022-04-17T17:45:03.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-29T02:07:17.000Z (9 months ago)
- Last Synced: 2024-03-01T02:30:40.361Z (9 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: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.