Swiftpack.co - Package - chrisdhaan/CDProjectBoilerplateSwift


CI Build Status GitHub Release CocoaPods Version Carthage compatible Swift 3.0 Platform License

This framework contains Swift code found to be useful in many personal projects. It has been condensed into boilerplate Swift classes that can be useful in new projects.

For a demonstration of the capabilities of CDProjectBoilerplateSwift; run the iOS Example project after cloning the repo.


  • iOS 8.0+
  • Xcode 8.1+
  • Swift 3.0+



Installation via CocoaPods

CDProjectBoilerplateSwift is available through CocoaPods. CocoaPods is a dependency manager that automates and simplifies the process of using 3rd-party libraries like CDProjectBoilerplateSwift in your projects. You can install CocoaPods with the following command:

gem install cocoapods

To integrate CDProjectBoilerplateSwift into your Xcode project using CocoaPods, simply add the following line to your Podfile:

pod 'CDProjectBoilerplateSwift', '1.0.0'

Afterwards, run the following command:

pod install

Installation via Carthage

CDProjectBoilerplateSwift is available through Carthage. Carthage is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks.

You can install Carthage via Homebrew with the following commands:

brew update
brew install carthage

To integrate CDProjectBoilerplateSwift into your Xcode project using Carthage, simply add the following line to your Cartfile:

github "chrisdhaan/CDProjectBoilerplateSwift" == 1.0.0

Afterwards, run the following command:

carthage update

Next, add the built CDProjectBoilerplateSwift.framework into your Xcode project.

Installation via Swift Package Manager

CDProjectBoilerplateSwift is available through the Swift Package Manager. The Swift Package Manager is a tool for automating the distribution of Swift code.

The Swift Package Manager is in early development, but CDProjectBoilerplateSwift does support its use on supported platforms. Until the Swift Package Manager supports non-host platforms, it is recommended to use CocoaPods, Carthage, or Git Submodules to build iOS, watchOS, and tvOS apps.

The Swift Package Manager is integrated into the Swift compiler.

To integrate CDProjectBoilerplateSwift into your Xcode project using The Swift Package Manager, simply add the following line to your Package.swift file:

dependencies: [
    .Package(url: "https://github.com/chrisdhaan/CDProjectBoilerplateSwift.git", "1.0.0")

Afterwards, run the following command:

swift package fetch

Installation via Git Submodule

CDProjectBoilerplateSwift is available through Git Submodule Git Submodule allows you to keep another Git repository in a subdirectory of your repository.

If your project is not initialized as a git repository, navigate into your top-level project directory, and install Git Submodule with the following command:

git init

To integrate CDProjectBoilerplateSwift into your Xcode project using Git Submodule, simply run the following command:

git submodule add https://github.com/chrisdhaan/CDProjectBoilerplateSwift.git

Afterwards, open the new CDProjectBoilerplateSwift folder, and drag the CDProjectBoilerplateSwift.xcodeproj into the Project Navigator of your Xcode project. A common location for the CDProjectBoilerplateSwift.xcodeproj is directly below the Products folder.

Next, select your application project in the Project Navigator to navigate to the target configuration window and select the application target under the Targets heading in the sidebar. In the tab bar at the top of that window, open the General panel. Click on the + button under the Embedded Binaries section. You will see two different CDProjectBoilerplateSwift.xcodeproj folders, each with a version of the CDProjectBoilerplateSwift.framework nested inside a Products folder. It does not matter which Products folder you choose from, select the CDProjectBoilerplateSwift.framework for iOS.


Christopher de Haan, contact@christopherdehaan.me


CDProjectBoilerplateSwift is available under the MIT license. See the LICENSE file for more info.


Stars: 1
Help us keep the lights on

Used By

Total: 0


1.0.0 - Nov 19, 2017


  • [x] Loading
  • [x] Menu
  • [x] More