XcodeColorSense - An Xcode plugin that makes working with color easier.

Overview

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 might also like...
Xcode plugin for filtering the console area.
Xcode plugin for filtering the console area.

MCLog This plugin lets you easily filter the Xcode console log output. While you can already search the text in the console log output you are still l

📸 A wrapper for AVCaptureSession - The way easier to use the Camera.

Capturer A wrapper for AVCaptureSession - The way easier to use the Camera. Setting up let captureBody = CaptureBody( configuration: .init { $0.

EasierPath is a library to make UIBezierPath easier to use
EasierPath is a library to make UIBezierPath easier to use

EasierPath is a library to make UIBezierPath easier to use. More specifically, you can write more intuitive and concise code when you draw a straight line or a curve.

Random image and background color with swift
Random image and background color with swift

Random-image-and-background-color Hello, this is my first project. Frankly, I got this idea from the "IOS Academy" page, but: color scale for the back

SwiftColorArt is a demo application that includes Swift files with all classes and extension necessary to create a font color schema matching to an image
SwiftColorArt is a demo application that includes Swift files with all classes and extension necessary to create a font color schema matching to an image

SwiftColorArt SwiftColorArt is a demo application that includes Swift files with all classes and extension necessary to create a font color schema mat

🎨 Mondrian is lightweight Swift package that provides a universal basis for your design system's color palette.

🧑‍🎨 Mondrian Mondrian provides a universal basis on which to build your design system's color palette right from your codebase. With support for all

Small color quantizer for bitmaps without any dependencies or use of frameworks

MicroColorQuantizer This package currently offers a very simple color quantizer

The first non-jailbroken iOS (and macOS) application to adjust the screen temperature, brightness, and color!

GoodNight Project name thanks to @Emu4iOS. Based off of Thomas Finch's GammaThingy. GoodNight is an app that allows you to directly access the screen'

Globally change the appearance of the application. Light/Dark mode and color.
Globally change the appearance of the application. Light/Dark mode and color.

About I tried to create a project where you can globally change the appearance of the application. Perhaps someone was looking for such a solution. ⭐️

Comments
  • Add color detection for hex colors from Int values

    Add color detection for hex colors from Int values

    Just another simple matcher for matching colors defines like this

    UIColor(hex: 0x5856d6)
    

    Of course, I can create this using this UIColor extention

    extension UIColor {
    
        convenience init(red: Int, green: Int, blue: Int) {
            assert(red >= 0 && red <= 255, "Invalid red component")
            assert(green >= 0 && green <= 255, "Invalid green component")
            assert(blue >= 0 && blue <= 255, "Invalid blue component")
    
            self.init(red: CGFloat(red) / 255.0, green: CGFloat(green) / 255.0, blue: CGFloat(blue) / 255.0, alpha: 1.0)
        }
    
        convenience init(hex: Int) {
            self.init(red:(hex >> 16) & 0xff, green:(hex >> 8) & 0xff, blue:hex & 0xff)
        }
    }
    
    opened by dral3x 4
  • Better README.md

    Better README.md

    Hey @onmyway133, your library is really interesting.

    The only problem I found was the README.md, which lacks some information I created this iOS Open source Readme Template so you can take a look on how to better organize. If you want, I can help you to organize the lib by adding a "Installation" section, for example

    What are your thoughts?

    opened by lfarah 4
Owner
Khoa
Check my apps https://onmyway133.com/apps
Khoa
Xcode plugin that brings ⇧⌘T from AppCode over to Xcode

Aviator An Xcode Plugin that brings ⇧⌘T over to Xcode This minimal plugin allows you to use the key combo ⇧⌘T to toggle between source and test files.

Mark Sands 29 Aug 18, 2018
Make system color defined in UIColor/NSColor available to SwiftUI Color.

SwiftUIColor Make system color defined in UIColor/NSColor available to SwiftUI Color. About In this library, colors are defined in an asset file. Crea

null 2 Oct 24, 2022
Cordova plugin to display a native color-picker dialog

Color Picker Plugin for Cordova (cordova-plugin-color-picker) Description This plugin allows you to display a color-picker native dialog in iOS and An

Antonio Vargas 1 May 10, 2022
Cordova-plugin-saveimage - This plugin helps you save images

cordova-plugin-saveimage This plugin helps you save images on iOS/Android Instal

Bernat 2 May 11, 2022
Xcode plugin that moves the instruction pointer to the selected line

SFJumpToLine Xcode plugin that moves the instruction pointer to the selected line. Install: Install via Alcatraz Or clone and build the project, then

Simone Ferrini 9 Jan 14, 2021
An Xcode plugin for manually symbolicating crash logs

CrashSymbal An Xcode plugin for manually symbolicating crash logs Install Build the project to install the plugin. The plugin gets installed in /Libra

Julian F. Weinert 38 Jun 3, 2021
A Xcode plugin to add highlight to the instances of selected symbol.

Auto Highlight Symbol About Xcode 8 Xcode 8 does't support plugins anymore, but there is a workaround, use at your own risk. Xcode can highlight insta

Nelson 83 Jan 3, 2023
An Xcode 7 plugin to build and run an app across multiple iOS devices with one click.

RunEverywhere Xcode Plugin Overview An Xcode 7 plugin to build and run an app across multiple iOS devices with one click. Gone are the days of manuall

Eric Mika 322 Sep 7, 2022
Xcode plugin to open the GitHub page of the commit of the currently selected line in the editor window.

Show in GitHub / BitBucket Xcode plugin to open a related Github or BitBucket page directly from the Xcode editor code window. Installs easily through

Lars Schneider 242 Jul 20, 2022
An Xcode plugin to improve dealing with colors in your project

Crayons is an Xcode7 plugin with various features that improve working with colors in your projects ##Code palettes (iOS only) You can share palettes

Fabio Ritrovato 477 Sep 23, 2022