Skip to content

yoshiz3-onishi/YZTagView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

YZTagView

This is a so simple tag view witch can add and remove.

Screenshot

Installation

Clone or download the repository and manually add the file TagView.swift to your project and target.

Usage

Default usage

let tagView = TagView( position: CGPoint( x: 0, y: 0 ), size: CGSize( width: frame.width, height: frame.height ) )
addSubview( tagView )

With options

let options: [TagViewOptions] =
[
    .InnerMergine( 0.0 ),
    .AutoGlowHeight( true ),
    .Font( UIFont.systemFontOfSize( 14 ) ),
    .TagBackgroundColor( UIColor.white ),
    .TagTextColor( UIColor.lightGray ),
    .AddButtonBackgroundColor( UIColor.white ),
    .AddButtonTextColor( UIColor.gray ),
]

let tagView = TagView( position: CGPoint( x: 0, y: 0 ), size: CGSize( width: frame.width, height: frame.height, options: options ) )
addSubview( tagView )

Contact

Mail: trace.helloworld@gmail.com

License

TagView is available under the MIT License

About

A simple tag view

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages