- Use an abstract networking layer
- Use a functional module for your requests
- 92.4 % Test coverage
- Keep networking simple
- NetworkRequestFactory protocol:
- URLRequest Additions:
- Parameter Encoding
- Host Environment protocol sample
- Authentication protocol
- Certificate Pinning
- iOS 12.0+
- WatchOS 5.0+
- TvOS 12.0+
- MacOS 10.14+
- Xcode 10.2+
- Swift 5+
### Carthage
Carthage is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks. To integrate QuickHatch into your Xcode project using Carthage, specify it in your Cartfile:
git "https://github.com/dkoster95/QuickHatchSwift.git" "1.1.7"
Run carthage update to build the framework (you can specify the platform) and then drag the executable QuickHatch.framework into your Xcode project.
QuickHatch has support for SPM, you just need to go to Xcode in the menu File/Swift Packages/Add package dependency and you select the version of QuickHatch.
No Package manager? no problem, you can use QuickHatch as a git submodule
-
Open up Terminal,
cdinto your top-level project directory, and run the following command "if" your project is not initialized as a git repository:$ git init
-
Add QuickHatch as a git submodule by running the following command:
$ git submodule add https://github.com/dkoster95/QuickHatchSwift.git
-
Open the new
QuickHatchfolder, and drag theQuickHatch.xcodeprojinto the Project Navigator of your application's Xcode project.It should appear nested underneath your application's blue project icon. Whether it is above or below all the other Xcode groups does not matter.
-
Select the
QuickHatch.xcodeprojin the Project Navigator and verify the deployment target matches that of your application target. -
And that's it!
