Latest 0.3.2
Homepage https://github.com/ridvank/UIImageViewWithWords
License MIT
Platforms ios 8.0, requires ARC
Authors

[![CI Status](http://img.shields.io/travis/Ridvan Kucuk/UIImageViewWithWords.svg?style=flat)](https://travis-ci.org/Ridvan Kucuk/UIImageViewWithWords)
Version
License
Platform

UIImageView extension that helps you to create images with initial letters of words.

UIImageViewWithWordsUIImageViewWithWords

Installation

From CocoaPods

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

For Swift 3.x:

pod "UIImageViewWithWords"

For Swift 2.3:

pod "UIImageViewWithWords", '~> 0.2.2'

For Swift 2.2:

pod "UIImageViewWithWords", '~> 0.2.1'

Usage

UIImageViewWithWords is written in Swift and it gives you the ability to create images from word’s initials.

This will add an image with initials to your UIImageView object with random background color with circular shaped.

imageView.image(with: "Ridvan Kucuk")

or if you want to add attributes to text, you can set attributes like this for Swift 3.x:

let fontAttributes = [NSForegroundColorAttributeName : UIColor.blue,
                                 NSFontAttributeName : UIFont.systemFont(ofSize: 40)]
self.imageView.image(with: "Ridvan Kucuk", color: UIColor.orange, circular: true, fontAttributes: fontAttributes)

for Swift 2.x:

let fontAttributes = [NSForegroundColorAttributeName : UIColor.blueColor(),
NSFontAttributeName : UIFont.systemFontOfSize(40)
]
self.imageView.image(with: "Ridvan Kucuk", color: UIColor.orangeColor(), circular: true, fontAttributes: fontAttributes)

Manually

You can just drag and drop UIImageView+Words.swift file into your project.

Author

Ridvan Kucuk, [email protected]

License

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

Latest podspec

{
    "name": "UIImageViewWithWords",
    "version": "0.3.2",
    "summary": "Create imageView with Words.",
    "description": "An extension for UIImageView to create image with words.",
    "homepage": "https://github.com/ridvank/UIImageViewWithWords",
    "license": "MIT",
    "authors": {
        "Ridvan Kucuk": "[email protected]"
    },
    "source": {
        "git": "https://github.com/ridvank/UIImageViewWithWords.git",
        "tag": "0.3.2"
    },
    "platforms": {
        "ios": "8.0"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes/**/*",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This