Latest | 2.0.0 |
---|---|
Homepage | https://github.com/ykyouhei/KYDigitalFontView |
License | MIT |
Platforms | ios 8.0, requires ARC |
Authors |
KYDigitalFontView
is a custom view that displays the character in the digital font style
- IBDesignable, IBInspectable Support
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
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
License
This code is distributed under the terms and conditions of the MIT license.
Latest podspec
{ "name": "KYDigitalFontView", "version": "2.0.0", "summary": "KYDigitalFontView is a custom view that displays the character in the digital font style.", "homepage": "https://github.com/ykyouhei/KYDigitalFontView", "license": "MIT", "authors": { "Kyohei Yamaguchi": "[email protected]" }, "social_media_url": "https://twitter.com/kyo__hei", "platforms": { "ios": "8.0" }, "source": { "git": "https://github.com/ykyouhei/KYDigitalFontView.git", "tag": "2.0.0" }, "source_files": "KYDigitalFontView/Classes/*.swift", "requires_arc": true }
Sun, 25 Sep 2016 01:04:04 +0000