A lightway subclass of uiview for render text vertical in Swift and SwiftUI. Implement by CoreText.
Pull requests and suggestions welcome :)
To run the example project, clone the repo, and run.
- Xcode 11.5 and above
- iOS 11 if not SwiftUI
- iOS 13 or MacOS 10.15 and above for SwiftUI
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
XFVerticalLabel (Which contained 'XFVerticalLabel.swift' and ‘VerticalLabel.swift’) to your project.
Some key part of implentment refrence from:
XFVerticalLabel is available under the MIT license. See the LICENSE file for more info.