-
Notifications
You must be signed in to change notification settings - Fork 124
Expand file tree
/
Copy pathCLTokenView.h
More file actions
45 lines (31 loc) · 1.3 KB
/
CLTokenView.h
File metadata and controls
45 lines (31 loc) · 1.3 KB
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
//
// CLTokenView.h
// CLTokenInputView
//
// Created by Rizwan Sattar on 2/24/14.
// Copyright (c) 2014 Cluster Labs, Inc. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "CLToken.h"
NS_ASSUME_NONNULL_BEGIN
@class CLTokenView;
@protocol CLTokenViewDelegate <NSObject>
@required
- (void)tokenViewDidRequestDelete:(CLTokenView *)tokenView replaceWithText:(nullable NSString *)replacementText;
- (void)tokenViewDidRequestSelection:(CLTokenView *)tokenView;
@end
@interface CLTokenView : UIView <UIKeyInput>
@property (weak, nonatomic, nullable) NSObject <CLTokenViewDelegate> *delegate;
@property (assign, nonatomic) BOOL selected;
@property (assign, nonatomic) BOOL hideUnselectedComma;
@property (assign, nonatomic) UIEdgeInsets padding;
@property (copy, nonatomic) NSDictionary<NSString *,id> *defaultTextAttributes;
@property (copy, nonatomic) NSDictionary<NSString *,id> *selectedTextAttributes;
@property (assign, nonatomic) UIKeyboardAppearance inputKeyboardAppearance;
@property (assign, nonatomic) UIKeyboardType inputKeyboardType;
- (id)initWithToken:(CLToken *)token font:(nullable UIFont *)font;
- (void)setSelected:(BOOL)selected animated:(BOOL)animated;
// For iOS 6 compatibility, provide the setter tintColor
- (void)setTintColor:(nullable UIColor *)tintColor;
@end
NS_ASSUME_NONNULL_END