SwiftConnect is a lightweight network abstraction layer, built on top of Alamofire. It can be used to dramatically simplify interacting with RESTful JSON web-services.
- iOS 13.0+
- Xcode 13.2+
- Swift 5.5+
SwiftConnect is available through Swift Package Manager To install it, simply add the following line to your Package.swift:
dependencies: [
.package(url: "https://github.com/tareksabry1337/SwiftConnect.git", .upToNextMajor(from: "3.0.0"))
]
SwiftConnect has move away from all closure based code and is now completely implemented using Swift's new shiny async / await, if you are still interested in the legacy version that supports iOS 10.0 please refer to the v2 branch instead for the documentation and installation
Please, don't hesitate to file an issue if you have questions.
- Unit Testing
- OAuth2 Support
- Support for downloading tasks
- Support for handling refresh tokens.
SwiftConnect doesn't have any depedency except Alamofire
Everything else was built from scratch natively and using Swift's Modern APIs
SwiftConnect is available under the MIT license. See the LICENSE file for more info.