Some Swift extensions for a cleaner and better code

What's New



This new features are added:

  • Convert Celsius to Kelvin
  • Convert Kelvin to Celsius
  • Convert Fahrenheit to Kelvin
  • Convert Kelvin to Fahrenheit
  • Convert HEX Color Value to Swift Color

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


  • Create colors using HTML Hex values
  • Simplify date formatting
  • Convert Celsius to Fahrenheit 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 formating and calculation utilities


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


Swift Package Manager

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


The comprehensive documentation is accessible through this link.


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


  • Swift Tools 5.9.0
View More Packages from this Author


  • None
Last updated: Tue Feb 27 2024 12:55:32 GMT-1000 (Hawaii-Aleutian Standard Time)