Skip to content

A lightway subclass of uiview for renter text vertical in Swift and SwiftUI. Impletement by CoreText.

Notifications You must be signed in to change notification settings

zhxf2012/XFVerticalLabel

Repository files navigation

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.

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.

About

A lightway subclass of uiview for renter text vertical in Swift and SwiftUI. Impletement by CoreText.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages