summaryrefslogtreecommitdiff
path: root/Juick
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2023-05-13 17:21:51 +0300
committerGravatar Vitaly Takmazov2023-05-14 01:15:35 +0300
commit773754148b7006140963dcebfab21766b6f1c6fb (patch)
tree5c1d17fe6bfc723dd02aec7e47626b00b8dcca7f /Juick
parent8d6a2bd09634e6885a213cfb75a44e2c5f6feafd (diff)
Starting to convert UIKit classes
Diffstat (limited to 'Juick')
-rw-r--r--Juick/Supporting Files/Juick-Bridging-Header.h1
-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
5 files changed, 22 insertions, 44 deletions
diff --git a/Juick/Supporting Files/Juick-Bridging-Header.h b/Juick/Supporting Files/Juick-Bridging-Header.h
index e11d920..5dfa23b 100644
--- a/Juick/Supporting Files/Juick-Bridging-Header.h
+++ b/Juick/Supporting Files/Juick-Bridging-Header.h
@@ -1,3 +1,4 @@
//
// Use this file to import your target's public headers that you would like to expose to Swift.
//
+#import "UIView+Shimmer.h"
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>