diff options
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"; } |