项目介绍:
YZTagView
支持热拔插的标签视图
安装方法
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