From 7bb21424f0e764ab0d7a535be916fa93001feefa Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Sat, 13 May 2023 18:23:02 +0300 Subject: QuoteView conversion --- Juick/ViewControllers/NewPostViewController.m | 3 ++- Juick/Views/QuoteView.h | 13 ------------- Juick/Views/QuoteView.m | 17 ----------------- Juick/Views/QuoteView.swift | 14 ++++++++++++++ Juick/Views/QuoteView.xib | 27 ++++++++++++++++----------- 5 files changed, 32 insertions(+), 42 deletions(-) delete mode 100644 Juick/Views/QuoteView.h delete mode 100644 Juick/Views/QuoteView.m create mode 100644 Juick/Views/QuoteView.swift (limited to 'Juick') diff --git a/Juick/ViewControllers/NewPostViewController.m b/Juick/ViewControllers/NewPostViewController.m index 18ae15b..4ab1c0b 100644 --- a/Juick/ViewControllers/NewPostViewController.m +++ b/Juick/ViewControllers/NewPostViewController.m @@ -8,9 +8,10 @@ #import "NewPostViewController.h" #import "MessagesViewController.h" -#import "QuoteView.h" #import "User+UIView.h" +#import "Juick-Swift.h" + NSString * const NewMessageNotificationName = @"NewMessage"; NSString * const ReplyPostedNotificationName = @"ReplyPosted"; diff --git a/Juick/Views/QuoteView.h b/Juick/Views/QuoteView.h deleted file mode 100644 index affc7ee..0000000 --- a/Juick/Views/QuoteView.h +++ /dev/null @@ -1,13 +0,0 @@ -// -// MessageInputView.h -// Juick -// -// Created by Vitaly Takmazov on 03/12/2017. -// Copyright © 2017 com.juick. All rights reserved. -// - -#import - -@interface QuoteView : UIVisualEffectView -@property (weak, nonatomic) IBOutlet UILabel *quoteText; -@end diff --git a/Juick/Views/QuoteView.m b/Juick/Views/QuoteView.m deleted file mode 100644 index 5dd3d62..0000000 --- a/Juick/Views/QuoteView.m +++ /dev/null @@ -1,17 +0,0 @@ -// -// MessageInputView.m -// Juick -// -// Created by Vitaly Takmazov on 03/12/2017. -// Copyright © 2017 com.juick. All rights reserved. -// - -#import "QuoteView.h" -@implementation QuoteView - --(void) awakeFromNib { - [super awakeFromNib]; - self.contentView.backgroundColor = [UIColor colorNamed:@"Background"]; -} - -@end diff --git a/Juick/Views/QuoteView.swift b/Juick/Views/QuoteView.swift new file mode 100644 index 0000000..3720e59 --- /dev/null +++ b/Juick/Views/QuoteView.swift @@ -0,0 +1,14 @@ +// +// QuoteView.swift +// Juick +// +// Created by Vitaly Takmazov on 13.05.2023. +// Copyright © 2023 com.juick. All rights reserved. +// + +import UIKit + +@objc +class QuoteView: UIVisualEffectView { + @IBOutlet weak var quoteText: UILabel! +} diff --git a/Juick/Views/QuoteView.xib b/Juick/Views/QuoteView.xib index 96a03fe..a8ebbdf 100644 --- a/Juick/Views/QuoteView.xib +++ b/Juick/Views/QuoteView.xib @@ -1,44 +1,49 @@ - - - - + + - + + - - + + - + + + - - + + + + + + -- cgit v1.2.3