OTCore

1.5.3

Useful extensions on Swift standard library types.
orchetect/OTCore

What's New

1.5.3

2024-05-02T05:18:01Z
  • Collection: Added .replace(elementsIn:with:) methods
  • Collection: Added .replacing(elementsIn:with:) methods
  • String: Added sanitizePathComponent(for:replacement:) method
  • String: Added sanitizingPathComponent(for:replacement:) method
  • URL: Added sanitizeLastPathComponent(for:replacement:) method
  • URL: Addesd sanitizingLastPathComponent(for:replacement:) method

OTCore

CI Build Status Platforms - macOS 10.12+ | iOS 9+ | tvOS 9+ | watchOS 2+ | visionOS 1+ Swift 5.3-5.9 Xcode 12-15 License: MIT

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

    • Select File → Swift Packages → Add Package Dependency
    • Add package using https://github.com/orchetect/OTCore as the URL.
  2. Import the module in your *.swift files where needed.

    import OTCore

Dependency within a Swift Package

  1. In your Package.swift file:

    dependencies: [
        .package(url: "https://github.com/orchetect/OTCore", from: "1.5.0")
    ]
  2. @_implementationOnly prevents the methods and properties in OTCore from being exported to the consumer of your SPM package.

    @_implementationOnly import OTCore

Documentation

Most methods are implemented as category methods so they are generally discoverable.

All methods have inline help explaining their purpose and basic usage examples.

Author

Coded by a bunch of 🐹 hamsters in a trenchcoat that calls itself @orchetect.

License

Licensed under the MIT license. See LICENSE for details.

Contributions

Bug fixes and improvements are welcome. Please open an issue to discuss prior to submitting PRs.

Description

  • Swift Tools 5.3.0
View More Packages from this Author

Dependencies

Last updated: Mon Sep 30 2024 16:28:18 GMT-0900 (Hawaii-Aleutian Daylight Time)