Skip to content

ahcode0919/Fast

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Collection of helpful Swift extensions and utilities

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages