1
0
Fork
You've already forked Rapid
0
A host of utilities to make Swift Swiftier
  • Swift 100%
2025年11月02日 09:37:42 -05:00
.swiftpm okay, too many changes apparently 2025年09月19日 18:21:35 -04:00
.vscode test: update tests 2025年05月17日 16:09:50 -04:00
Sources deprecate Bool.init(fromInt:) and Bool.asInt in favor of labelless initializers on their respective types 2025年11月02日 09:37:21 -05:00
Tests deprecate Bool.init(fromInt:) and Bool.asInt in favor of labelless initializers on their respective types 2025年11月02日 09:37:21 -05:00
.gitignore chore: 📄 switch license to GNU Affero GPL 2025年04月12日 19:30:15 -04:00
.spi.yml chore: 📄 switch license to GNU Affero GPL 2025年04月12日 19:30:15 -04:00
.swift-version okay, too many changes apparently 2025年09月19日 18:21:35 -04:00
.swiftlint.yml chore(lint): 🔧 remove invalid rule in swiftlint config 2025年04月13日 10:07:28 -04:00
Changelog.md deprecate Bool.init(fromInt:) and Bool.asInt in favor of labelless initializers on their respective types 2025年11月02日 09:37:21 -05:00
Code of Conduct.md docs: documentation tweaks 2025年04月13日 11:09:50 -04:00
License.md simplify license headers 2025年08月20日 15:15:30 -04:00
Package.swift remove dependency on swift-docc-plugin 2025年11月02日 09:37:42 -05:00
Readme.md okay, too many changes apparently 2025年09月19日 18:21:35 -04:00

Rapid

swift compatibility platform compatibility

A host of utilities to make Swift Swiftier.

What's this about?

Rapid is a package containing many of the most common extensions to the standard library (and, occasionally, other frameworks).

Within Rapid, you will find:

  • Operators for the most commonly used features, such as § to create String representations
  • Unicode versions of built-in operators, such as instead of !=
  • Property wrappers, such as @Transformed or @Clamped
  • Global constants for commonly used values, such as π for Double.pi
  • Computed properties to simplify common comparisons, such as isNil or isNotEmpty
  • Syntactic sugar for working on specific values, such as configure(_:_:) or run(with:do:)
  • Methods and subscripts that return nil instead of crashing when invalid arguments are passed
  • And more...

Using Rapid

Using in a Swift package

  1. Add Rapid to your package manifest:

    .package(
     url: "https://codeberg.org/kaascevich/Rapid.git",
     from: "4.0.0"
    )
    
  2. Add Rapid as a dependency for each of your targets:

    .product(
     name: "Rapid",
     package: "Rapid"
    )
    

Using in an Xcode project

  1. Choose FileAdd Package Dependencies...
  2. Copy this link, and paste it into the search bar.
  3. Click Add Package.
  4. Choose the target you want to add Rapid to, and then click Add Package again.

Documentation

I've documented everything to the best of my ability. (削除) However, due to an issue with the Swift Package Index, you'll need to build it yourself for now. (削除ここまで) Dunno when they fixed it, but they did! You can find it here.