summaryrefslogtreecommitdiff
path: root/Juick/Views/MessageInputView.h
blob: 9cf3652b7e9c6cb36f2b42e66f5944f7bc333b3a (plain) (blame)
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
//
//  MessageInputView.h
//  Juick
//
//  Created by Vitaly Takmazov on 08/04/2018.
//  Copyright © 2018 com.juick. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol MessageInputDelegate <NSObject>

-(void) textSent:(NSString *)text;

@end

@interface MessageInputView : UIVisualEffectView<UITextViewDelegate>
@property (strong, nonatomic) IBOutlet NSLayoutConstraint *bottomConstraint;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *textHeightConstraint;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *topMarginConstraint;
@property (strong, nonatomic) IBOutlet UITextView *textView;

@property (weak, nonatomic) IBOutlet UIButton *sendButton;

- (IBAction)sendPressed:(id)sender;

@property (nonatomic, weak) id<MessageInputDelegate> delegate;

@end