Skip to content
🎈 An Xcode plugin that makes working with color easier
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Screenshots Update May 20, 2016
XcodeColorSense.xcodeproj Add PresetMatcher May 17, 2016
XcodeColorSense Update Jun 16, 2016
.gitignore Initial commit May 16, 2016
LICENSE.md Initial commit May 16, 2016
README.md

README.md

XcodeColorSense

An Xcode plugin that makes working with color easier. Inspired by ColorSense-for-Xcode with extra care for Hex color

Features

  • Show color preview as you type or select
  • Works for UIColor, NSColor

Matchers

  • Hex Matcher
let _ = NSColor.hex("#FFAABB")
let _ = UIColor(hex: 0xFFAABB)
  • RGBA Matcher
let _ = UIColor(red: 1.0f, green: 240/255, blue: 0.8, alpha: 0.95)
  • Preset Matcher
let _ = NSColor.redColor()

Extensible

Add your own color handler by conforming to Matcher

protocol Matcher {
  func check(line: String, selectedText: String) -> (color: NSColor, range: NSRange)?
}

Installation

Manually

  • Build the project. The plugin will be in ~/Library/Application Support/Developer/Shared/Xcode/Plug-ins
  • Restart Xcode

Alcatraz

Licence

This project is released under the MIT license. See LICENSE.md.

You can’t perform that action at this time.