Skip to content

Commit

Permalink
Merge pull request Boris-Em#29 from andrey-krukovskiy/CarthageSupport
Browse files Browse the repository at this point in the history
Carthage support
  • Loading branch information
Boris-Em authored Aug 23, 2016
2 parents 89f58d3 + 9ae019a commit 683ce75
Show file tree
Hide file tree
Showing 6 changed files with 328 additions and 22 deletions.
25 changes: 14 additions & 11 deletions Classes/BEMCheckBox.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,6 @@

@protocol BEMCheckBoxDelegate;

// Tell the compiler to assume that no method should have a NULL value
NS_ASSUME_NONNULL_BEGIN

/** Tasteful Checkbox for iOS.
*/
#if __IPHONE_OS_VERSION_MAX_ALLOWED > __IPHONE_9_3
IB_DESIGNABLE @interface BEMCheckBox : UIView <CAAnimationDelegate>
#else
IB_DESIGNABLE @interface BEMCheckBox : UIView
#endif

/** The different type of boxes available.
* @see boxType
*/
Expand All @@ -34,6 +23,20 @@ typedef NS_ENUM(NSInteger, BEMBoxType) {
BEMBoxTypeSquare
};

#import "BEMPathManager.h"
#import "BEMAnimationManager.h"

// Tell the compiler to assume that no method should have a NULL value
NS_ASSUME_NONNULL_BEGIN

/** Tasteful Checkbox for iOS.
*/
#if __IPHONE_OS_VERSION_MAX_ALLOWED > __IPHONE_9_3
IB_DESIGNABLE @interface BEMCheckBox : UIView <CAAnimationDelegate>
#else
IB_DESIGNABLE @interface BEMCheckBox : UIView
#endif

/** The different type of animations available.
* @see onAnimationType and offAnimationType.
*/
Expand Down
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
[![Version](https://img.shields.io/cocoapods/v/BEMCheckBox.svg?style=flat)](http://cocoadocs.org/docsets/BEMCheckBox)
[![License](https://img.shields.io/cocoapods/l/BEMCheckBox.svg?style=flat)](http://cocoadocs.org/docsets/BEMCheckBox)
[![Platform](https://img.shields.io/cocoapods/p/BEMCheckBox.svg?style=flat)](http://cocoadocs.org/docsets/BEMCheckBox)
[![Carthage Compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)

<p align="center"><img src="http://s1.postimg.org/mcnwdl88v/BEMCheck_Box.jpg"/></p>

Expand Down Expand Up @@ -54,6 +55,27 @@ It only takes a few simple steps to install and setup **BEMCheckBox** to your pr
###Installation
The easiest way to install **BEMCheckBox** is to use <a href="http://cocoapods.org/" target="_blank">CocoaPods</a>. To do so, simply add the following line to your `Podfile`:
<pre><code>pod 'BEMCheckBox'</code></pre>


### Carthage

[Carthage](https://github.com/Carthage/Carthage) is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks.

You can install Carthage with [Homebrew](http://brew.sh/) using the following command:

```bash
$ brew update
$ brew install carthage
```

To integrate BEMCheckBox into your Xcode project using Carthage, specify it in your `Cartfile`:

```ogdl
github "Boris-Em/BEMCheckBox"
```

Run `carthage update` to build the framework and drag the built `BEMCheckBox.framework` into your Xcode project.


The other way to install **BEMCheckBox**, is to drag and drop the *Classes* folder into your Xcode project. When you do so, make sure to check the "*Copy items into destination group's folder*" box.

Expand Down
17 changes: 17 additions & 0 deletions Sample Project/BEMCheckBox/CheckBox.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
//
// BEMCheckBox.h
// BEMCheckBox
//
// Created by Hardik on 5/8/16.
// Copyright © 2016 Boris Emorine. All rights reserved.
//

#import <UIKit/UIKit.h>

//! Project version number for BEMCheckBox.
FOUNDATION_EXPORT double BEMCheckBoxVersionNumber;

//! Project version string for BEMCheckBox.
FOUNDATION_EXPORT const unsigned char BEMCheckBoxVersionString[];

// In this header, you should import all the public headers of your framework using statements like #import <BEMCheckBox/PublicHeader.h>
26 changes: 26 additions & 0 deletions Sample Project/BEMCheckBox/Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>NSPrincipalClass</key>
<string></string>
</dict>
</plist>
Loading

0 comments on commit 683ce75

Please sign in to comment.