Quantum Quill Swift

The Quantum Quill Swift package offers extensions and functions for daily use, promoting cleaner code.

Several extensions are sourced from this site. A special thanks to Alisa “Foxicorn” Nekrasova for her excellent article, which served as inspiration for this Swift package. Additionally, some extensions were discovered in the past year, while others were authored for specific use cases.

Table of Contents

Features

  • Create colors using HTML Hex values for UIKit and SwiftUI
  • Simplify date formatting
  • Convert Celsius to Fahrenheit and vice versa
  • Convert Celsius to Kelvin and vice versa
  • Convert Fahrenheit to Kelvin and vice versa
  • Convert kilometers to miles and vice versa
  • Convert kilowatts to horsepower and vice versa
  • Double formatting utilities
  • Integer formatting utilities
  • Validate email addresses
  • Validate phone numbers
  • Add a prefix if it does not exist
  • Check if a string is alphanumeric
  • Check if a string contains only digits
  • Various path functions and formatting utilities

Date

Date formating and calculation utilities

Requirements

The following table outlines the requirements for this package:

Platform Minimum Swift Version Installation
iOS 14.0+ / macOS 10.15+ 5.3 Swift Package Manager

Installation

Swift Package Manager

dependencies: [
    .package(url: "https://github.com/Flexible-Universe/QuantumQuillSwift.git", .upToNextMajor(from: "1.0.0"))
]

Documentation

The comprehensive documentation is accessible through this link.

License

QuantumQuillSwift is released under the MIT license. See LICENSE for details.