-
Notifications
You must be signed in to change notification settings - Fork 110
/
AMTagView.h
106 lines (87 loc) · 2.39 KB
/
AMTagView.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
//
// AMTagView.h
// AMTagListView
//
// Created by Andrea Mazzini on 20/01/14.
// Copyright (c) 2014 Fancy Pixel. All rights reserved.
//
@import UIKit;
#import "AMTag.h"
/** Constant for the tag notification */
extern NSString * const AMTagViewNotification;
/**-----------------------------------------------------------------------------
* @name AMTagView
* -----------------------------------------------------------------------------
*/
@interface AMTagView : UIView<AMTag>
/** Radius
*
* The tag's corner radius
*/
@property (nonatomic, assign) float radius UI_APPEARANCE_SELECTOR;
/** Tag Length
*
* The Length of the tag's tail
*/
@property (nonatomic, assign) float tagLength UI_APPEARANCE_SELECTOR;
/** Inner tag padding
*
* The padding of the tag's inner background
*/
@property (nonatomic, assign) float innerTagPadding UI_APPEARANCE_SELECTOR;
/** Tag hole radius
*
* The radius of the punch-hole of the tag
*/
@property (nonatomic, assign) float holeRadius UI_APPEARANCE_SELECTOR;
/** Text padding
*
* The padding (horizontal and vertical) of the text inside the tag
*/
@property (nonatomic, assign) CGPoint textPadding UI_APPEARANCE_SELECTOR;
/** Text font
*
* The font of the text inside the tag
*/
@property (nonatomic, strong) UIFont *textFont UI_APPEARANCE_SELECTOR;
/** Text color
*
* The color of the text inside the tag
*/
@property (nonatomic, strong) UIColor *textColor UI_APPEARANCE_SELECTOR;
/** Tag outer background color
*
* The tag's inner background color
*/
@property (nonatomic, strong) UIColor *tagColor UI_APPEARANCE_SELECTOR;
/** Tag inner background color
*
* The tag's outer background color
*/
@property (nonatomic, strong) UIColor *innerTagColor UI_APPEARANCE_SELECTOR;
/** Accessory image
*
* A UIImage with an accessory image displayed inside the tag
*/
@property (nonatomic, strong) UIImage *accessoryImage UI_APPEARANCE_SELECTOR;
/** Accessory image padding
*
* The padding of the accessory image within the tag
*/
@property (nonatomic, assign) float imagePadding UI_APPEARANCE_SELECTOR;
/**
* Text displayed
*/
@property (nonatomic, weak) NSString *tagText;
/**
* Optional client-specific data to store with/identify each tag
*/
@property (nonatomic, strong) NSDictionary *userInfo;
/** Setup a new tag
*
* Sets up the tag with a given string
*
* @param text The text to display
*/
- (void)setupWithText:(NSString *)text;
@end