https://github.com/orchetect/otcore
Useful extensions on Swift standard library types.
https://github.com/orchetect/otcore
ios mac-catalyst maccatalyst macos shared-code swift5 swift5-3 tvos utilities utility watchos
Last synced: 2 months ago
JSON representation
Useful extensions on Swift standard library types.
- Host: GitHub
- URL: https://github.com/orchetect/otcore
- Owner: orchetect
- License: mit
- Created: 2020-09-23T03:52:22.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2024-09-29T20:59:19.000Z (9 months ago)
- Last Synced: 2024-10-20T08:09:07.690Z (8 months ago)
- Topics: ios, mac-catalyst, maccatalyst, macos, shared-code, swift5, swift5-3, tvos, utilities, utility, watchos
- Language: Swift
- Homepage:
- Size: 863 KB
- Stars: 6
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# OTCore
[](https://swiftpackageindex.com/orchetect/OTCore) [](https://swiftpackageindex.com/orchetect/OTCore) [](https://developer.apple.com/swift) [](https://github.com/orchetect/OTCore/blob/main/LICENSE)
Multi-platform Swift shared code module with useful extension methods on standard library types.
The library has full unit test coverage and is actively used in production.
## Installation: Swift Package Manager (SPM)
### Dependency within an Application
1. Add the package to your Xcode project using Swift Package Manager using `https://github.com/orchetect/OTCore` as the URL.
2. Import the module files where needed. It's recommended to use the `internal` access level if used in a package so that it is not exported to the user of your package.
```swift
internal import OTCore
```### Dependency within a Swift Package
In your Package.swift file:
```swift
dependencies: [
.package(url: "https://github.com/orchetect/OTCore", from: "1.7.4")
]
```## Documentation
Most methods are implemented as category methods so they are generally discoverable.
All methods are documented with inline help explaining their purpose and basic usage examples.
## Author
Coded by a bunch of 🐹 hamsters in a trenchcoat that calls itself [@orchetect](https://github.com/orchetect).
## License
Licensed under the MIT license. See [LICENSE](https://github.com/orchetect/OTCore/blob/master/LICENSE) for details.
## Contributions
Bug fixes and improvements are welcome. Please open an issue to discuss prior to submitting PRs.