Skip to content

Commit f958b22

Browse files
authored
Merge pull request #2 from ckdash-git/repo_update
release: 0.1.1 — bump version; use current repo slug for immediate pu…
2 parents 5dd93f3 + 73b7140 commit f958b22

4 files changed

Lines changed: 49 additions & 6 deletions

File tree

ColorsKit.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'ColorsKit'
3-
s.version = '0.1.0'
3+
s.version = '0.1.1'
44
s.summary = 'Comprehensive color management for iOS: hex APIs, theming, accessibility, gradients.'
55
s.description = <<-DESC
66
ColorKit simplifies color usage in iOS apps by providing:
@@ -13,7 +13,7 @@ ColorKit simplifies color usage in iOS apps by providing:
1313
DESC
1414
s.homepage = 'https://github.com/ckdash-git/ColorKit'
1515
s.license = { :type => 'MIT', :file => 'LICENSE' }
16-
s.author = { 'Your Name' => 'Chandan Kumar Dash' }
16+
s.author = { 'Chandan Kumar Dash' => 'chandan@optionallabs.com' }
1717
s.source = { :git => 'https://github.com/ckdash-git/ColorKit.git', :tag => s.version.to_s }
1818
s.swift_version = '5.9'
1919
s.ios.deployment_target = '13.0'

Documentation/GettingStarted.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Use the GitHub URL and a tagged version in Xcode or `Package.swift`.
1717

1818
```swift
1919
.dependencies: [
20-
.package(url: "https://github.com/ckdash-git/ColorKit.git", from: "0.1.0")
20+
.package(url: "https://github.com/ckdash-git/ColorKit.git", from: "0.1.1")
2121
]
2222
.targets: [
2323
.target(

Example/ConsumerSample/Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ let package = Package(
1616
.executableTarget(
1717
name: "ConsumerSample",
1818
dependencies: [
19-
.product(name: "ColorKit", package: "ColorsKit")
19+
.product(name: "ColorKit", package: "ColorKit")
2020
]
2121
)
2222
]

README.md

Lines changed: 45 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,54 @@
11
# ColorKit
22

3-
[![version](https://img.shields.io/github/v/tag/ckdash-git/ColorKit?label=version)](https://github.com/ckdash-git/ColorKit/tags) [![lines of code](https://tokei.rs/b1/github/ckdash-git/ColorKit?category=code)](https://github.com/ckdash-git/ColorKit) [![license](https://img.shields.io/github/license/ckdash-git/ColorKit)](LICENSE) [![CocoaPods](https://img.shields.io/cocoapods/v/ColorsKit.svg)](https://cocoapods.org/pods/ColorsKit)
3+
[![version](https://img.shields.io/github/v/tag/ckdash-git/ColorKit?label=version)](https://github.com/ckdash-git/ColorKit/tags) [![lines of code](https://tokei.rs/b1/github/ckdash-git/ColorKit?category=code)](https://github.com/ckdash-git/ColorKit) [![license](https://img.shields.io/github/license/ckdash-git/ColorKit)](https://github.com/ckdash-git/ColorKit/blob/main/LICENSE)
44

55
Pragmatic color utilities for SwiftUI and UIKit.
66

77
ColorKit helps you parse hex colors, check accessibility contrast, generate palettes, build gradients, and simulate color‑vision deficiencies — all with a tiny, focused API that feels at home in Swift.
88

9+
## Installation (SPM)
10+
Add the package to Xcode or your `Package.swift` using the public repo and a tag.
11+
12+
- URL: `https://github.com/ckdash-git/ColorKit.git`
13+
- Minimum platforms: iOS 13+, macOS 12+, tvOS 13+, watchOS 6+
14+
15+
```swift
16+
// Package.swift
17+
.dependencies: [
18+
.package(url: "https://github.com/ckdash-git/ColorKit.git", from: "0.1.1")
19+
]
20+
.targets: [
21+
.target(
22+
name: "App",
23+
dependencies: [
24+
.product(name: "ColorKit", package: "ColorKit")
25+
]
26+
)
27+
]
28+
```
29+
30+
In Xcode: File → Add Packages… → paste the URL → add the `ColorKit` product.
31+
32+
## Installation (CocoaPods)
33+
Add to your Podfile (iOS example):
34+
35+
```ruby
36+
platform :ios, '13.0'
37+
use_frameworks!
38+
39+
target 'App' do
40+
pod 'ColorsKit', '~> 0.1'
41+
end
42+
```
43+
44+
Then run `pod install` and import the module:
45+
46+
```swift
47+
import ColorKit
48+
```
49+
50+
Note: The CocoaPods pod name is `ColorsKit`, but the Swift module is `ColorKit`.
51+
952
## Features
1053
- Hex parsing to and from `RGBA` (`#RGB`, `#RGBA`, `#RRGGBB`, `#RRGGBBAA`)
1154
- WCAG contrast ratio and AA/AAA compliance checks
@@ -22,7 +65,7 @@ Add the package to Xcode or your `Package.swift` using the public repo and a tag
2265
```swift
2366
// Package.swift
2467
.dependencies: [
25-
.package(url: "https://github.com/ckdash-git/ColorKit.git", from: "0.1.0")
68+
.package(url: "https://github.com/ckdash-git/ColorKit.git", from: "0.1.1")
2669
]
2770
.targets: [
2871
.target(

0 commit comments

Comments
 (0)