This is a so simple tag view witch can add and remove.
Clone or download the repository and manually add the file TagView.swift
to your project and target.
let tagView = TagView( position: CGPoint( x: 0, y: 0 ), size: CGSize( width: frame.width, height: frame.height ) )
addSubview( tagView )
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 )
Mail: trace.helloworld@gmail.com
TagView is available under the MIT License