Skip to content
 
 

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

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.whiteColor() ),
    .TagTextColor( UIColor.lightGrayColor()),
    .AddButtonBackgroundColor( UIColor.whiteColor() ),
    .AddButtonTextColor( UIColor.grayColor() ),
]

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

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages