A collection of Swift iOS protocols and wrappers for native iOS libraries and frameworks.


License
MIT
Install
pod try Capsule

Documentation

Capsule Cocoapod Version Swift Version SPM Compatible Cocoapod Platform iOS Deployment Target License

A collection of Swift iOS protocols and wrappers for native iOS libraries and frameworks.

What this means

This project contains many protocols, extensions, wrappers, property wrappers, errors, and builders that can be used with accompanying fakes for simple unit testing and misc. usage.

Adding Capsule to your project

CocoaPods

CocoaPods is the recommended way to add Capsule to your project:

  1. Add Capsule to your Podfile pod 'Capsule'.
  2. Install the pod(s) by running pod install.

Swift Package manager

Swift Package Manager can be used to add Capsule the to your project:

  1. Add .package(url: "https://github.com/rbaumbach/Capsule", from: "1.6.2")
  2. Follow intructions to add the Capsule package to your project.

Clone from Github

  1. Clone repository from github and copy files directly, or add it as a git submodule.
  2. Add all files from Source directory to your project.

Building

This project has been setup to use fastlane to run the specs.

First, bundle required gems and then install Cocoapods when in the project directory:

$ bundle
$ bundle exec pod install

And then use fastlane to run all the specs on the command line:

$ bundle exec fastlane build

Suggestions, requests, and feedback

Thanks for checking out Capsule. Any feedback, suggestions and feedback can be can be sent to: github@ryan.codes, or opened as a github issue.