Skip to content

Commit

Permalink
Merge pull request #97 from agisboye/master
Browse files Browse the repository at this point in the history
SPM support
  • Loading branch information
Boris-Em committed Oct 2, 2020
2 parents 61987ca + 0de0a68 commit a3292eb
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Classes/BEMCheckBox.swift
Expand Up @@ -183,12 +183,12 @@ public class BEMCheckBox: UIControl, CAAnimationDelegate {

// MARK: Initialization

@objc override init(frame: CGRect) {
@objc public override init(frame: CGRect) {
super.init(frame: frame)
commonInit()
}

@objc required init?(coder: NSCoder) {
@objc public required init?(coder: NSCoder) {
super.init(coder: coder)
commonInit()
}
Expand Down
15 changes: 15 additions & 0 deletions Package.swift
@@ -0,0 +1,15 @@
// swift-tools-version:5.1
import PackageDescription

let package = Package(
name: "BEMCheckBox",
platforms: [
.iOS(.v8)
],
products: [
.library(name: "BEMCheckBox", targets: ["BEMCheckBox"])
],
targets: [
.target(name: "BEMCheckBox", dependencies: [], path: "Classes")
]
)
3 changes: 3 additions & 0 deletions README.md
Expand Up @@ -63,6 +63,9 @@ It only takes a few simple steps to install and setup **BEMCheckBox** to your pr

### Installation

#### Swift Package Manager
Add `https://github.com/Boris-Em/BEMCheckBox` as a dependency to your Package.swift file or select `File -> Swift Packages -> Add Package Dependency...` in Xcode.

#### CocoaPods
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>
Expand Down

0 comments on commit a3292eb

Please sign in to comment.