Skip to content

odyshewroman/CurvedTextView

Repository files navigation

Shield: CC BY-SA 4.0

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

CC BY-SA 4.0

CurvedTextView

CurvedTextView it is UIKit based UI element for drawing curved text. This realisation based on this stackowerflow comment

Compatibility

The CurvedTextView is supported on iOS version 10 or later and Swift 4 and above.

Installation

In Xcode go to: File -> Swift Packages -> Add Package Dependency...

Enter the CurvedTextView GitHub repository - https://github.com/odyshewroman/CurvedTextView

Select the version

Import CurvedTextView module and start to use CurvedTextView

Cocoapods

To install CurvedTextView with CocoaPods, add the following lines to your Podfile:

pod "CurvedTextView"

Ussage

If set circle position to 270 degrees, the text will be flipped.

To avoid this, set the negative radius and circle position to 90 degrees.