Latest 0.1.0
Homepage https://github.com/darquro/VerticalAlignmentLabel
License MIT
Platforms ios 8.0
Authors

CI Status
Version
License
Platform

This is a simple library that allows vertical alignment of UILabel.

screenshots

Usage

  1. Set UILabel to Storyboard or XIB.
  2. Change Class and Module of Custom Class in Identity Inspector to VerticalAlignmentLabel.
    screenshots

  3. Select property of Vertical Alignment Label in Attributes Inspector.
    screenshots

Programmatically

// var label: VerticalAlignmentLabel

label.verticalTextAlignment = .top
label.verticalTextAlignment = .center
label.verticalTextAlignment = .bottom

Example

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

Requirements

  • Swift 3.0 or later
  • iOS 8.0 or later

Installation

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

pod "VerticalAlignmentLabel"

Author

darquro, [email protected]

License

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

Latest podspec

{
    "name": "VerticalAlignmentLabel",
    "version": "0.1.0",
    "summary": "Vertical alignment of UILabel.",
    "description": "This is a simple library that allows vertical alignment of UILabel.",
    "homepage": "https://github.com/darquro/VerticalAlignmentLabel",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "screenshots": [
        "https://raw.githubusercontent.com/darquro/VerticalAlignmentLabel/master/Images/screenshot1.png",
        "https://raw.githubusercontent.com/darquro/VerticalAlignmentLabel/master/Images/screenshot2.png",
        "https://raw.githubusercontent.com/darquro/VerticalAlignmentLabel/master/Images/screenshot3.png",
        {
            "type": "MIT",
            "file": "LICENSE"
        }
    ],
    "authors": {
        "darquro": "[email protected]"
    },
    "source": {
        "git": "https://github.com/darquro/VerticalAlignmentLabel.git",
        "tag": "0.1.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "VerticalAlignmentLabel/Classes/**/*",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This