From 773754148b7006140963dcebfab21766b6f1c6fb Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Sat, 13 May 2023 17:21:51 +0300 Subject: Starting to convert UIKit classes --- Juick/Views/ContentLoadingCell.h | 17 ----------------- Juick/Views/ContentLoadingCell.m | 23 ----------------------- Juick/Views/ContentLoadingCell.swift | 17 +++++++++++++++++ Juick/Views/ContentLoadingCell.xib | 8 ++++---- 4 files changed, 21 insertions(+), 44 deletions(-) delete mode 100644 Juick/Views/ContentLoadingCell.h delete mode 100644 Juick/Views/ContentLoadingCell.m create mode 100644 Juick/Views/ContentLoadingCell.swift (limited to 'Juick/Views') diff --git a/Juick/Views/ContentLoadingCell.h b/Juick/Views/ContentLoadingCell.h deleted file mode 100644 index d9a8f6f..0000000 --- a/Juick/Views/ContentLoadingCell.h +++ /dev/null @@ -1,17 +0,0 @@ -// -// ContentLoadingCell.h -// Juick -// -// Created by Vitaly Takmazov on 16/10/2018. -// Copyright © 2018 com.juick. All rights reserved. -// - -#import - -NS_ASSUME_NONNULL_BEGIN - -@interface ContentLoadingCell : UITableViewCell - -@end - -NS_ASSUME_NONNULL_END diff --git a/Juick/Views/ContentLoadingCell.m b/Juick/Views/ContentLoadingCell.m deleted file mode 100644 index 90329fa..0000000 --- a/Juick/Views/ContentLoadingCell.m +++ /dev/null @@ -1,23 +0,0 @@ -// -// ContentLoadingCell.m -// Juick -// -// Created by Vitaly Takmazov on 16/10/2018. -// Copyright © 2018 com.juick. All rights reserved. -// - -#import "ContentLoadingCell.h" - -@implementation ContentLoadingCell - -- (void)awakeFromNib { - [super awakeFromNib]; - self.userInteractionEnabled = NO; -} - -- (void)setSelected:(BOOL)selected animated:(BOOL)animated { - [super setSelected:selected animated:animated]; - [self.contentView startShimmering]; -} - -@end diff --git a/Juick/Views/ContentLoadingCell.swift b/Juick/Views/ContentLoadingCell.swift new file mode 100644 index 0000000..a7f0cf0 --- /dev/null +++ b/Juick/Views/ContentLoadingCell.swift @@ -0,0 +1,17 @@ +// +// ContentLoadingCell.swift +// Juick +// +// Created by Vitaly Takmazov on 13.05.2023. +// Copyright © 2023 com.juick. All rights reserved. +// + +import UIKit + +@objc +class ContentLoadingCell: UITableViewCell { + override func setSelected(_ selected: Bool, animated: Bool) { + super.setSelected(selected, animated: animated) + self.contentView.startShimmering() + } +} diff --git a/Juick/Views/ContentLoadingCell.xib b/Juick/Views/ContentLoadingCell.xib index 9a8b659..36b2c50 100644 --- a/Juick/Views/ContentLoadingCell.xib +++ b/Juick/Views/ContentLoadingCell.xib @@ -1,19 +1,19 @@ - + - + - + - + -- cgit v1.2.3