Swiftpack.co - ahcode0919/Fast as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by ahcode0919.
ahcode0919/Fast v0.0.6
Collection of helpful Swift extensions and utilities
⭐️ 0
🕓 2 weeks ago
iOS macOS
.package(url: "https://github.com/ahcode0919/Fast.git", from: "v0.0.6")

Fast

A collection of helpful Swift extensions and utilities

Usage

  • Add to following to your project's Swift Package Manager dependencies: https://github.com/ahcode0919/Fast.git

Features

Array

  • [Double]
    • .random(range:_size:_) create a array of random values within a specified range
  • [Float]
    • .random(range:_size:_) create a array of random values within a specified range
  • [Int]
    • .random(range:_size:_) create a array of random values within a specified range
  • [UInt]
    • .random(range:_size:_) create a array of random values within a specified range

Collections

  • CountedSet
  • OrderedSet

Int

Int64

  • byteFormattedString(units:_, countStyle:_) Convert Int64 to byte measurement string Ex: 100_000 = 100 KB

String

  • String.random(length:_) - Create a string of alphanumeric characters of the specified length
  • chomp() - Removes white space from the start and end of a String
  • contains(_ type: NSTextCheckingResult.CheckingType) - Checks for matching string format. Date, link, phonenumber, etc
  • extractDoubles() -> [Doubles] - Extract Doubles from string
  • extractInts() -> [Int] - Extract integers from string
  • withQuotes() - Encapsulates a String in quotations

GitHub

link
Stars: 0
Last commit: 2 weeks ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Release Notes

v0.0.6
2 weeks ago

What's Changed

Full Changelog: https://github.com/ahcode0919/Fast/compare/0.0.5...v0.0.6

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics