From 842990ac65de6fd61e027c8a9cff48d30aaf3a60 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Tue, 16 Oct 2018 23:04:01 +0300 Subject: Content loading --- Juick/Views/ContentLoadingCell.h | 17 ++++++++ Juick/Views/ContentLoadingCell.m | 22 ++++++++++ Juick/Views/ContentLoadingCell.xib | 84 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 123 insertions(+) create mode 100644 Juick/Views/ContentLoadingCell.h create mode 100644 Juick/Views/ContentLoadingCell.m create mode 100644 Juick/Views/ContentLoadingCell.xib (limited to 'Juick/Views') diff --git a/Juick/Views/ContentLoadingCell.h b/Juick/Views/ContentLoadingCell.h new file mode 100644 index 0000000..d9a8f6f --- /dev/null +++ b/Juick/Views/ContentLoadingCell.h @@ -0,0 +1,17 @@ +// +// 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 new file mode 100644 index 0000000..5ec67b3 --- /dev/null +++ b/Juick/Views/ContentLoadingCell.m @@ -0,0 +1,22 @@ +// +// 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]; +} + +- (void)setSelected:(BOOL)selected animated:(BOOL)animated { + [super setSelected:selected animated:animated]; + [self.contentView startShimmering]; +} + +@end diff --git a/Juick/Views/ContentLoadingCell.xib b/Juick/Views/ContentLoadingCell.xib new file mode 100644 index 0000000..e58af72 --- /dev/null +++ b/Juick/Views/ContentLoadingCell.xib @@ -0,0 +1,84 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- cgit v1.2.3