summaryrefslogtreecommitdiff
path: root/Juick/Views
diff options
context:
space:
mode:
Diffstat (limited to 'Juick/Views')
-rw-r--r--Juick/Views/ContentLoadingCell.h17
-rw-r--r--Juick/Views/ContentLoadingCell.m23
-rw-r--r--Juick/Views/ContentLoadingCell.swift17
-rw-r--r--Juick/Views/ContentLoadingCell.xib8
4 files changed, 21 insertions, 44 deletions
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 <UIKit/UIKit.h>
-
-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 @@
<?xml version="1.0" encoding="UTF-8"?>
-<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="19455" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
+<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="21701" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
<device id="retina4_7" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
- <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="19454"/>
+ <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="21678"/>
<capability name="Named colors" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
- <tableViewCell contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" reuseIdentifier="contentLoadingCell" rowHeight="230" id="KGk-i7-Jjw" customClass="ContentLoadingCell">
+ <tableViewCell contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" reuseIdentifier="contentLoadingCell" rowHeight="230" id="KGk-i7-Jjw" customClass="ContentLoadingCell" customModule="Juick" customModuleProvider="target">
<rect key="frame" x="0.0" y="0.0" width="310" height="230"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
- <tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="KGk-i7-Jjw" id="H2p-sc-9uM">
+ <tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" userInteractionEnabled="NO" contentMode="center" tableViewCell="KGk-i7-Jjw" id="H2p-sc-9uM">
<rect key="frame" x="0.0" y="0.0" width="310" height="230"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>