Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/onmyway133/XcodeColorSense
:balloon: An Xcode plugin that makes working with color easier
https://github.com/onmyway133/XcodeColorSense
color hex palette plugin rgb sense swift xcode
Last synced: 3 months ago
JSON representation
:balloon: An Xcode plugin that makes working with color easier
- Host: GitHub
- URL: https://github.com/onmyway133/XcodeColorSense
- Owner: onmyway133
- License: mit
- Created: 2016-05-16T10:52:49.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-06-16T21:46:38.000Z (over 8 years ago)
- Last Synced: 2024-10-25T06:02:27.695Z (3 months ago)
- Topics: color, hex, palette, plugin, rgb, sense, swift, xcode
- Language: Swift
- Homepage:
- Size: 1.66 MB
- Stars: 78
- Watchers: 5
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
XcodeColorSense
==
An Xcode plugin that makes working with color easier. Inspired by [ColorSense-for-Xcode](https://github.com/omz/ColorSense-for-Xcode) with extra care for Hex color![](Screenshots/Banner.png)
Features
==- Show color preview as you type or select
- Works for `UIColor`, `NSColor`![](Screenshots/XcodeColorSense.gif)
## Matchers
- Hex Matcher
```swift
let _ = NSColor.hex("#FFAABB")
let _ = UIColor(hex: 0xFFAABB)
```- RGBA Matcher
```swift
let _ = UIColor(red: 1.0f, green: 240/255, blue: 0.8, alpha: 0.95)
```- Preset Matcher
```swift
let _ = NSColor.redColor()
```## Extensible
Add your own color handler by conforming to `Matcher`
```swift
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
- Available via http://alcatraz.io/
Licence
--
This project is released under the MIT license. See LICENSE.md.