Latest 1.0.0
Homepage https://github.com/hoomazoid/CircleLabel
License MIT
Platforms ios 8.0
Authors

Version
License
Platform

Description and Features

Lib automatically creates labels with circular backgrounds(Like in contacts app in Android).

Library is written in swift

iOS Version >= 8.0

It is highly customizable.
It has text based color generator(Same text will always be same color)
It has full Storyboard integration.

Installation

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

pod 'CircleLabel'

Manual Installation

Dowload files from lib folder and copy them into your project.

Usage

CircleLabel extends UIImageView. It has full Storyboard support you will see how it looks directly in Interface Builder.

import CircleLabel

StoryBoard

Drag UIView to your view and set class to CircleLabel.

You can set parameters directly from Storyboard or Manually from code.

CircleLabel

Parameters


var circle:CircleLabel

//Set text within circle
circle.text = "From Code"

//This text will be used to generate circle color
circle.colorFromText = "GUARAM"

//Use custom color scheme
circle.COLOR_SCHEME = [ 0xffe57373, 0xfff06292 ...]

//Generate color based on text or user defined parameter
circle.useTextColor = true;

//If useTextColor == false - this value will be used for circle color
circle.circleColor = UIColor.blue

//Change text color
circle.textColor = UIColor.white

//Padding of inner text
circle.padding = 0.3

//Amount of lines
circle!.amountLines = 1

Author

Gio Andriadze, [email protected]

License

CircleLabel is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "CircleLabel",
    "version": "1.0.0",
    "summary": "Labels with circle backgrounds",
    "description": "Genererate labels with circle backgrounds.nUse text based color generator with custom schemes or choose your own color.nLibrary has full Storyboard integration.",
    "homepage": "https://github.com/hoomazoid/CircleLabel",
    "screenshots": "https://i.imgur.com/OX0ZniH.jpg",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Giorgi Andriadze": "[email protected]"
    },
    "source": {
        "git": "https://github.com/hoomazoid/CircleLabel.git",
        "tag": "1.0.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "CircleLabel/Classes/**/*",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This