diff options
author | Vitaly Takmazov | 2021-11-19 17:11:16 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2021-11-19 17:11:26 +0300 |
commit | 5a48eda1fca0f97d813ab37f7cd247fa5c87aae4 (patch) | |
tree | c1c6251137493997acbbebb88fda3835f1f7f1e8 /Juick/ViewControllers | |
parent | 605523f7a0af0fda52ca71322a7ed6e5c25ae260 (diff) |
Show quote view on Catalyst
Diffstat (limited to 'Juick/ViewControllers')
-rw-r--r-- | Juick/ViewControllers/NewPostViewController.m | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Juick/ViewControllers/NewPostViewController.m b/Juick/ViewControllers/NewPostViewController.m index 03a27e3..1b655f6 100644 --- a/Juick/ViewControllers/NewPostViewController.m +++ b/Juick/ViewControllers/NewPostViewController.m @@ -20,6 +20,7 @@ NSString * const ReplyPostedNotificationName = @"ReplyPosted"; @property (nonatomic, assign) int paddingValue; @property (nonatomic, readwrite, retain) UIView *inputAccessoryView; +@property (weak, nonatomic) IBOutlet UIStackView *stack; @end @@ -30,9 +31,12 @@ NSString * const ReplyPostedNotificationName = @"ReplyPosted"; [super viewDidLoad]; self.paddingValue = self.bottomConstraint.constant; if (_replyTo != nil) { - QuoteView *inputView = (QuoteView *) self.inputAccessoryView; + QuoteView *inputView = (QuoteView *) self.inputAccessoryView; inputView.quoteText.text = _replyTo.text; self.title = [NSString stringWithFormat:@"Reply to %@", _replyTo.user.uname]; +#if TARGET_OS_MACCATALYST + [self.stack addArrangedSubview:[self inputAccessoryView]]; +#endif } else { self.title = @"Post"; } |