Swiftpack.co - Package - zhxf2012/XFVerticalLabel

XFVerticalLabel

A lightway subclass of uiview for render text vertical in Swift and SwiftUI. Implement by CoreText.

Pull requests and suggestions welcome :)

Report Bug · Suggest a feature

Getting Started

To run the example project, clone the repo, and run.

Requirements

  • Xcode 11.5 and above
  • iOS 11 if not SwiftUI
  • iOS 13 or MacOS 10.15 and above for SwiftUI

Installation

XFVerticalLabel is a swift package.

  • It can be imported into an app project using Xcode’s new Swift Packages option, which is located within the File menu.
  • When asked, use this repository's url: https://github.com/zhxf2012/XFVerticalLabel

Alternatively, if you're unable to use SPM for some reason, you can import it Manual

Manual

Add Folder XFVerticalLabel (Which contained 'XFVerticalLabel.swift' and ‘VerticalLabel.swift’) to your project.

Refrence

Some key part of implentment refrence from:

https://github.com/luwei2012/CoreTextView https://github.com/masuhara/VerticalTextSample

Author

Xingfa Zhou

Contributor

License

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

Github

link
Stars: 1

Dependencies

Used By

Total: 0

Releases

v0.1 - 2020-09-16 00:21:22