summaryrefslogtreecommitdiff
path: root/Juick/Views/MessageInputView.h
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2019-10-03 16:35:31 +0300
committerGravatar Vitaly Takmazov2019-10-03 16:35:31 +0300
commitbea1efd34f09e7eff15d03f7e6d3b1d44c967459 (patch)
treef3985f60f1970df8817ed95197958a7e4ffcf446 /Juick/Views/MessageInputView.h
parent01d2595e0634fc41d1bce94ce61f24e81de2a90d (diff)
Autoresizing MessageInput
Diffstat (limited to 'Juick/Views/MessageInputView.h')
-rw-r--r--Juick/Views/MessageInputView.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/Juick/Views/MessageInputView.h b/Juick/Views/MessageInputView.h
index c78f498..9cf3652 100644
--- a/Juick/Views/MessageInputView.h
+++ b/Juick/Views/MessageInputView.h
@@ -14,9 +14,14 @@
@end
-@interface MessageInputView : UIVisualEffectView
+@interface MessageInputView : UIVisualEffectView<UITextViewDelegate>
@property (strong, nonatomic) IBOutlet NSLayoutConstraint *bottomConstraint;
-@property (strong, nonatomic) IBOutlet UITextField *textView;
+@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;