Skip to content
This repository was archived by the owner on Jul 30, 2021. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions ColorPicker.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
objects = {

/* Begin PBXBuildFile section */
4A17F36E23B7E58700619791 /* Package.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4A17F36D23B7E58700619791 /* Package.swift */; };
9668C54C217AE63C0021FC09 /* ColorSpaceConverter.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9668C54B217AE63C0021FC09 /* ColorSpaceConverter.swift */; };
9668C54E217B0DCD0021FC09 /* ColorPickerViewDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9668C54D217B0DCD0021FC09 /* ColorPickerViewDelegate.swift */; };
9668C550217B29BF0021FC09 /* UIColorExtension.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9668C54F217B29BF0021FC09 /* UIColorExtension.swift */; };
Expand All @@ -29,6 +30,7 @@
/* End PBXContainerItemProxy section */

/* Begin PBXFileReference section */
4A17F36D23B7E58700619791 /* Package.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Package.swift; sourceTree = SOURCE_ROOT; };
9668C54B217AE63C0021FC09 /* ColorSpaceConverter.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ColorSpaceConverter.swift; sourceTree = "<group>"; };
9668C54D217B0DCD0021FC09 /* ColorPickerViewDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ColorPickerViewDelegate.swift; sourceTree = "<group>"; };
9668C54F217B29BF0021FC09 /* UIColorExtension.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UIColorExtension.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -65,6 +67,7 @@
966E577A217A0A2B009CBABF = {
isa = PBXGroup;
children = (
4A17F36D23B7E58700619791 /* Package.swift */,
966E5786217A0A2B009CBABF /* ColorPicker */,
966E5791217A0A2C009CBABF /* ColorPickerTests */,
966E5785217A0A2B009CBABF /* Products */,
Expand Down Expand Up @@ -216,6 +219,7 @@
966E57C8217A1437009CBABF /* ColorPickerView.swift in Sources */,
966E57C1217A12EC009CBABF /* RGB.swift in Sources */,
9668C54E217B0DCD0021FC09 /* ColorPickerViewDelegate.swift in Sources */,
4A17F36E23B7E58700619791 /* Package.swift in Sources */,
966E57C3217A12F3009CBABF /* HSB.swift in Sources */,
9668C54C217AE63C0021FC09 /* ColorSpaceConverter.swift in Sources */,
9668C550217B29BF0021FC09 /* UIColorExtension.swift in Sources */,
Expand Down
2 changes: 1 addition & 1 deletion ColorPicker/ColorPickerView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Copyright © 2018年 culumn. All rights reserved.
//

import Foundation
import UIKit

public class ColorPickerView: UIView {

Expand Down
2 changes: 0 additions & 2 deletions ColorPicker/ColorPickerViewDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
// Copyright © 2018年 culumn. All rights reserved.
//

import Foundation

public protocol ColorPickerViewDelegate: class {
func colorPickerWillBeginDragging(_ colorPicker: ColorPickerView)
func colorPickerDidSelectColor(_ colorPicker: ColorPickerView)
Expand Down
2 changes: 1 addition & 1 deletion ColorPicker/HSB.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Copyright © 2018年 culumn. All rights reserved.
//

import Foundation
import UIKit

public struct HSB {
public var hue: CGFloat
Expand Down
2 changes: 1 addition & 1 deletion ColorPicker/RGB.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Copyright © 2018年 culumn. All rights reserved.
//

import Foundation
import UIKit

public struct RGB {
public var red: CGFloat
Expand Down
2 changes: 1 addition & 1 deletion ColorPicker/UIColorExtension.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Copyright © 2018年 culumn. All rights reserved.
//

import Foundation
import UIKit

public extension UIColor {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@
<key>CFBundleVersion</key>
<string>1</string>
</dict>
</plist>
</plist>
22 changes: 22 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// swift-tools-version:5.1
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
name: "ColorPicker",
platforms: [
.iOS(.v9)
],
products: [
.library(
name: "ColorPicker",
targets: ["ColorPicker"]),
],
targets: [
.target(
name: "ColorPicker",
path: "ColorPicker/")
]
)

7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@ class ViewController: UIViewController, ColorPickerViewDelegate {
To run the example project, open the `Example/Example.xcworkspace`.

## Installation

### Swift Package Manager
In Xcode 11+, Go to File > Swift Packages > Add Package Dependencies… and paste the following Git URL into the text box:
```
https://github.com/culumn/ColorPicker
```

### [CocoaPods](https://cocoapods.org)
ColorPicker is available through [CocoaPods](https://cocoapods.org). To install it, simply add the following line to your `Podfile`:

Expand Down