A collection of useful Swift extensions to simplify and enhance iOS/macOS development. This open-source project includes a variety of handy extensions for standard Swift types, UIKit, Foundation, and more. Each extension is crafted to save development time and improve code readability and reusability.
- Core Extensions: Add functionality to common Swift types such as
String
,Array
,Date
, andDictionary
. - UIKit Extensions: Simplify common UI tasks with extensions for
UIView
,UIColor
,UIImage
, and others. - Foundation Extensions: Convenient methods for
URL
,DateFormatter
,Data
, and other Foundation types. - Lightweight and Modular: Include only the extensions you need, making it easy to keep your project lightweight.
To install using Swift Package Manager, add the following line to your Package.swift
file:
dependencies: [
.package(url: "https://github.com/mjn2max/swift-extensions.git", from: "1.0.0")
]
If you prefer not to use any of the aforementioned dependency managers, you can integrate Swift-Extensions into your project manually.
Platform | Minimum Swift Version | Installation | Status |
---|---|---|---|
iOS 13.0+ | 5.7.1 / Xcode 14.1 | Swift Package Manager, Manual | Not Fully Tested |
macOS 13.0+ | Latest Only | Swift Package Manager | Not Fully Tested |
watchOS | Latest Only | Swift Package Manager | Not Fully Tested |
tvOS | Latest Only | Swift Package Manager | Not Fully Tested |
visionOS | Latest Only | Swift Package Manager | Not Fully Tested |