Skip to content

Commit 683ce75

Browse files
authored
Merge pull request #29 from andrey-krukovskiy/CarthageSupport
Carthage support
2 parents 89f58d3 + 9ae019a commit 683ce75

6 files changed

Lines changed: 328 additions & 22 deletions

File tree

Classes/BEMCheckBox.h

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,6 @@
1010

1111
@protocol BEMCheckBoxDelegate;
1212

13-
// Tell the compiler to assume that no method should have a NULL value
14-
NS_ASSUME_NONNULL_BEGIN
15-
16-
/** Tasteful Checkbox for iOS.
17-
*/
18-
#if __IPHONE_OS_VERSION_MAX_ALLOWED > __IPHONE_9_3
19-
IB_DESIGNABLE @interface BEMCheckBox : UIView <CAAnimationDelegate>
20-
#else
21-
IB_DESIGNABLE @interface BEMCheckBox : UIView
22-
#endif
23-
2413
/** The different type of boxes available.
2514
* @see boxType
2615
*/
@@ -34,6 +23,20 @@ typedef NS_ENUM(NSInteger, BEMBoxType) {
3423
BEMBoxTypeSquare
3524
};
3625

26+
#import "BEMPathManager.h"
27+
#import "BEMAnimationManager.h"
28+
29+
// Tell the compiler to assume that no method should have a NULL value
30+
NS_ASSUME_NONNULL_BEGIN
31+
32+
/** Tasteful Checkbox for iOS.
33+
*/
34+
#if __IPHONE_OS_VERSION_MAX_ALLOWED > __IPHONE_9_3
35+
IB_DESIGNABLE @interface BEMCheckBox : UIView <CAAnimationDelegate>
36+
#else
37+
IB_DESIGNABLE @interface BEMCheckBox : UIView
38+
#endif
39+
3740
/** The different type of animations available.
3841
* @see onAnimationType and offAnimationType.
3942
*/

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
[![Version](https://img.shields.io/cocoapods/v/BEMCheckBox.svg?style=flat)](http://cocoadocs.org/docsets/BEMCheckBox)
44
[![License](https://img.shields.io/cocoapods/l/BEMCheckBox.svg?style=flat)](http://cocoadocs.org/docsets/BEMCheckBox)
55
[![Platform](https://img.shields.io/cocoapods/p/BEMCheckBox.svg?style=flat)](http://cocoadocs.org/docsets/BEMCheckBox)
6+
[![Carthage Compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)
67

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

@@ -54,6 +55,27 @@ It only takes a few simple steps to install and setup **BEMCheckBox** to your pr
5455
###Installation
5556
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`:
5657
<pre><code>pod 'BEMCheckBox'</code></pre>
58+
59+
60+
### Carthage
61+
62+
[Carthage](https://github.com/Carthage/Carthage) is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks.
63+
64+
You can install Carthage with [Homebrew](http://brew.sh/) using the following command:
65+
66+
```bash
67+
$ brew update
68+
$ brew install carthage
69+
```
70+
71+
To integrate BEMCheckBox into your Xcode project using Carthage, specify it in your `Cartfile`:
72+
73+
```ogdl
74+
github "Boris-Em/BEMCheckBox"
75+
```
76+
77+
Run `carthage update` to build the framework and drag the built `BEMCheckBox.framework` into your Xcode project.
78+
5779

5880
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.
5981

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
//
2+
// BEMCheckBox.h
3+
// BEMCheckBox
4+
//
5+
// Created by Hardik on 5/8/16.
6+
// Copyright © 2016 Boris Emorine. All rights reserved.
7+
//
8+
9+
#import <UIKit/UIKit.h>
10+
11+
//! Project version number for BEMCheckBox.
12+
FOUNDATION_EXPORT double BEMCheckBoxVersionNumber;
13+
14+
//! Project version string for BEMCheckBox.
15+
FOUNDATION_EXPORT const unsigned char BEMCheckBoxVersionString[];
16+
17+
// In this header, you should import all the public headers of your framework using statements like #import <BEMCheckBox/PublicHeader.h>
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>CFBundleDevelopmentRegion</key>
6+
<string>en</string>
7+
<key>CFBundleExecutable</key>
8+
<string>$(EXECUTABLE_NAME)</string>
9+
<key>CFBundleIdentifier</key>
10+
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
11+
<key>CFBundleInfoDictionaryVersion</key>
12+
<string>6.0</string>
13+
<key>CFBundleName</key>
14+
<string>$(PRODUCT_NAME)</string>
15+
<key>CFBundlePackageType</key>
16+
<string>FMWK</string>
17+
<key>CFBundleShortVersionString</key>
18+
<string>1.0</string>
19+
<key>CFBundleSignature</key>
20+
<string>????</string>
21+
<key>CFBundleVersion</key>
22+
<string>$(CURRENT_PROJECT_VERSION)</string>
23+
<key>NSPrincipalClass</key>
24+
<string></string>
25+
</dict>
26+
</plist>

0 commit comments

Comments
 (0)