Skip to content

darquro/VerticalAlignmentLabel

Repository files navigation

VerticalAlignmentLabel

CI Status Version License Platform

This is a simple library enables 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, yuki.kuro96@gmail.com

License

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

About

Enables vertical alignment in UILabel.

Resources

License

Stars

Watchers

Forks

Packages

No packages published