Latest 0.1.3
Homepage https://github.com/keepworks/KWTextStyleLabel
License MIT
Platforms ios 8.0
Authors

Build Status
Version
License
Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

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

pod "KWTextStyleLabel"

How to use

Add the class KWTextStyleLabel to label on storyboard

Adding KWTextStyleLabel

Modifying character spacing and line spacing using storyboard

Modify in storyboard

Or modifying character spacing and line spacing programmatically

import KWTextStyleLabel

@IBOutlet weak var label: KWTextStyleLabel!

label.characterSpacing = 3
label.lineGap = 10
label.text = "Lorem Ipsum is simply dummy text of the printing and typesetting industry."

Can create label with KWTextStyleLabel initializer

let label = KWTextStyleLabel(characterSpacing: 5, lineGap: 25, text: "Lorem Ipsum")
label.frame = CGRect(x: 8, y: 0, width: 296, height: 122)
view.addSubview(label)

KWTextStyleLabel initializer have 3 different optional parameters

KWTextStyleLabel()
KWTextStyleLabel(characterSpacing: <CGFloat>)
KWTextStyleLabel(lineGap: <CGFloat>)
KWTextStyleLabel(text: <String>)
KWTextStyleLabel(characterSpacing: <CGFloat>, lineGap: <CGFloat>)
KWTextStyleLabel(lineGap: <CGFloat>, text: <String>)
KWTextStyleLabel(characterSpacing: <CGFloat>, text: <String>)

Author

KeepWorks, [email protected]

Credits

KWTextStyleLabel is owned and maintained by the KeepWorks.

N|Solid

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/keepworks/KWTextStyleLabel.

License

KWTextStyleLabel is available under the MIT License. See the License file for more info.

Latest podspec

{
    "name": "KWTextStyleLabel",
    "version": "0.1.3",
    "summary": "Subclass of UILabel to modify character spacing and line spacing to your label.",
    "description": "Helps in modifying character spacing and line spacing to your label. You can modify using storyboard (Text Style Label) or programmatically.",
    "homepage": "https://github.com/keepworks/KWTextStyleLabel",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "KeepWorks": "[email protected]"
    },
    "source": {
        "git": "https://github.com/keepworks/KWTextStyleLabel.git",
        "tag": "0.1.3"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "KWTextStyleLabel/Classes/**/*",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This