Latest 0.1.0
License MIT
Platforms ios 8.0
Frameworks UIKit

iOS-RGBA  CI Status Version License Platform

:art: RGBA color string utilities for iOS

Getting Started

RGBA is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'RGBA'


@import RGBA;

// UIColor to RGBA
UIColor *color1 = [UIColor colorWithRed:1 green:0 blue:0 alpha:1];
NSString *string1 = [RGBAUtils fromUIColor:color1];
NSString *string2 = [color1 toRGBA]; // Use category

// RGBA to UIColor
UIColor *color2 = [RGBAUtils toUIColor:@"#FF0000FF"];
UIColor *color3 = [@"#FF0000FF" RGBAtoUIColor]; // Use category


import RGBA

// UIColor to RGBA
let color1 = UIColor(red: 1.0, green: 0.0, blue: 0.0, alpha: 1.0)
let string1 = RGBAUtils.fromUIColor(color1)
let string2 = color1.toRGBA() // Use Extension

// RGBA to UIColor
let color2 = RGBAUtils.toUIColor("#FF0000FF")
let color3 = "#FF0000FF".RGBAToUIColor() // Use Extension


MIT © Emoji Generator

Latest podspec

    "name": "RGBA",
    "version": "0.1.0",
    "summary": "RGBA color string utilities for iOS",
    "description": "RGBA color string utilities for iOSnnBy using this library, mutual conversion between RGBA color string and UIColor is possible.",
    "homepage": "",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    "authors": {
        "Pine Mizune": "[email protected]"
    "source": {
        "git": "",
        "tag": "0.1.0"
    "social_media_url": "",
    "platforms": {
        "ios": "8.0"
    "source_files": "RGBA/Classes/**/*",
    "public_header_files": "RGBA/Classes/**/*.h",
    "frameworks": "UIKit"

Pin It on Pinterest

Share This