kyd

KYDigitalFontView

KYDigitalFontView is a custom view that displays the character in the digital font style

Showing:

Popularity

Downloads/wk

0

GitHub Stars

40

Maintenance

Last Commit

5yrs ago

Contributors

0

Package

Dependencies

0

License

MIT

Categories

Readme

KYDigitalFontView

Carthage compatible Pod Version Pod Platform Pod License Swift version

KYDigitalFontView is a custom view that displays the character in the digital font style

  • IBDesignable, IBInspectable Support

sample1.gif sample2.gif

Installation

CocoaPods

KYDigitalFontView is available on CocoaPods. Add the following to your Podfile:

pod 'KYDigitalFontView'

Manually

Just add the Classes folder to your project.

Usage

(see sample Xcode project in /Example)

Code

let digitalFontView = KYDigitalFontView(frame: CGRectMake(10, 10, 100, 160))

digitalFontView.borderWidth   = 1
digitalFontView.borderColor   = UIColor.redColor()
digitalFontView.fillColor     = UIColor.cyanColor()
digitalFontView.lineWidth     = 15
digitalFontView.drawPositions = KYDigitalFontView.DrawPositions(character: "A")

/* Custom Drawing
digitalFontView.drawPositions = [._0, ._1, ._14, ._15]
*/

view.addSubview(v)

Storyboard

sample3.gif

Drawing Character

// From Character
digitalFontView.drawPositions = KYDigitalFontView.DrawPositions(character: "A")

// Custom Drawing
digitalFontView.drawPositions = [._0, ._1, ._2]

Supported Characters

  • a~z
  • A~Z
  • 0-9
  • $, +, -, *, /, =, %, \, ", ', #, @, &, _, [, ], (, ), {, }, <, >, `, ^, ~

Custom Drawing

sample.png

License

This code is distributed under the terms and conditions of the MIT license.

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100