From 73b7140b47d9b3865053ba5b7126f610a611a9f7 Mon Sep 17 00:00:00 2001 From: Chandan Date: Tue, 21 Oct 2025 21:15:05 +0530 Subject: [PATCH] =?UTF-8?q?release:=200.1.1=20=E2=80=94=20bump=20version;?= =?UTF-8?q?=20use=20current=20repo=20slug=20for=20immediate=20publish?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ColorsKit.podspec | 4 +-- Documentation/GettingStarted.md | 2 +- Example/ConsumerSample/Package.swift | 2 +- README.md | 47 ++++++++++++++++++++++++++-- 4 files changed, 49 insertions(+), 6 deletions(-) diff --git a/ColorsKit.podspec b/ColorsKit.podspec index 80a2ec3..09e96cd 100644 --- a/ColorsKit.podspec +++ b/ColorsKit.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'ColorsKit' - s.version = '0.1.0' + s.version = '0.1.1' s.summary = 'Comprehensive color management for iOS: hex APIs, theming, accessibility, gradients.' s.description = <<-DESC ColorKit simplifies color usage in iOS apps by providing: @@ -13,7 +13,7 @@ ColorKit simplifies color usage in iOS apps by providing: DESC s.homepage = 'https://github.com/ckdash-git/ColorKit' s.license = { :type => 'MIT', :file => 'LICENSE' } - s.author = { 'Your Name' => 'Chandan Kumar Dash' } + s.author = { 'Chandan Kumar Dash' => 'chandan@optionallabs.com' } s.source = { :git => 'https://github.com/ckdash-git/ColorKit.git', :tag => s.version.to_s } s.swift_version = '5.9' s.ios.deployment_target = '13.0' diff --git a/Documentation/GettingStarted.md b/Documentation/GettingStarted.md index 43c3528..8018362 100644 --- a/Documentation/GettingStarted.md +++ b/Documentation/GettingStarted.md @@ -17,7 +17,7 @@ Use the GitHub URL and a tagged version in Xcode or `Package.swift`. ```swift .dependencies: [ - .package(url: "https://github.com/ckdash-git/ColorKit.git", from: "0.1.0") + .package(url: "https://github.com/ckdash-git/ColorKit.git", from: "0.1.1") ] .targets: [ .target( diff --git a/Example/ConsumerSample/Package.swift b/Example/ConsumerSample/Package.swift index d8db47b..7c6eb96 100644 --- a/Example/ConsumerSample/Package.swift +++ b/Example/ConsumerSample/Package.swift @@ -16,7 +16,7 @@ let package = Package( .executableTarget( name: "ConsumerSample", dependencies: [ - .product(name: "ColorKit", package: "ColorsKit") + .product(name: "ColorKit", package: "ColorKit") ] ) ] diff --git a/README.md b/README.md index c2dd6b3..5bccd05 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,54 @@ # ColorKit -[![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) +[![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) Pragmatic color utilities for SwiftUI and UIKit. 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. +## Installation (SPM) +Add the package to Xcode or your `Package.swift` using the public repo and a tag. + +- URL: `https://github.com/ckdash-git/ColorKit.git` +- Minimum platforms: iOS 13+, macOS 12+, tvOS 13+, watchOS 6+ + +```swift +// Package.swift +.dependencies: [ + .package(url: "https://github.com/ckdash-git/ColorKit.git", from: "0.1.1") +] +.targets: [ + .target( + name: "App", + dependencies: [ + .product(name: "ColorKit", package: "ColorKit") + ] + ) +] +``` + +In Xcode: File → Add Packages… → paste the URL → add the `ColorKit` product. + +## Installation (CocoaPods) +Add to your Podfile (iOS example): + +```ruby +platform :ios, '13.0' +use_frameworks! + +target 'App' do + pod 'ColorsKit', '~> 0.1' +end +``` + +Then run `pod install` and import the module: + +```swift +import ColorKit +``` + +Note: The CocoaPods pod name is `ColorsKit`, but the Swift module is `ColorKit`. + ## Features - Hex parsing to and from `RGBA` (`#RGB`, `#RGBA`, `#RRGGBB`, `#RRGGBBAA`) - 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 ```swift // Package.swift .dependencies: [ - .package(url: "https://github.com/ckdash-git/ColorKit.git", from: "0.1.0") + .package(url: "https://github.com/ckdash-git/ColorKit.git", from: "0.1.1") ] .targets: [ .target(