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.
- 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 |
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.