Latest 0.1.0
Homepage https://github.com/emoji-gen/ios-rgba
License MIT
Platforms ios 8.0
Frameworks UIKit
Authors

iOS-RGBA  CI Status Version License Platform

:art: RGBA color string utilities for iOS

RGBA

Getting Started

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

pod 'RGBA'

Objective-C

@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

Swift

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

License

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": "https://github.com/emoji-gen/ios-rgba",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Pine Mizune": "[email protected]"
    },
    "source": {
        "git": "https://github.com/emoji-gen/ios-rgba.git",
        "tag": "0.1.0"
    },
    "social_media_url": "https://twitter.com/pine613",
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "RGBA/Classes/**/*",
    "public_header_files": "RGBA/Classes/**/*.h",
    "frameworks": "UIKit"
}

Pin It on Pinterest

Share This