Skip to content

Commit 1cb8fae

Browse files
committed
Seperate UITableViewCell extension
1 parent a6c7f5c commit 1cb8fae

File tree

4 files changed

+18
-5
lines changed

4 files changed

+18
-5
lines changed

Turbah.xcodeproj/project.pbxproj

+5-1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
FACE7EB924C176EB002FE5FC /* Location.swift in Sources */ = {isa = PBXBuildFile; fileRef = FACE7EB824C176EB002FE5FC /* Location.swift */; };
4040
FACE7EC124C4006D002FE5FC /* CompassView.swift in Sources */ = {isa = PBXBuildFile; fileRef = FACE7EC024C4006D002FE5FC /* CompassView.swift */; };
4141
FACE7EC324C411FF002FE5FC /* LocationListCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = FACE7EC224C411FF002FE5FC /* LocationListCell.swift */; };
42+
FAEDF1E32617F90D0084C10D /* UITableViewCell+Extension.swift in Sources */ = {isa = PBXBuildFile; fileRef = FAEDF1E22617F90D0084C10D /* UITableViewCell+Extension.swift */; };
4243
/* End PBXBuildFile section */
4344

4445
/* Begin PBXFileReference section */
@@ -78,6 +79,7 @@
7879
FACE7EB824C176EB002FE5FC /* Location.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Location.swift; sourceTree = "<group>"; };
7980
FACE7EC024C4006D002FE5FC /* CompassView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CompassView.swift; sourceTree = "<group>"; };
8081
FACE7EC224C411FF002FE5FC /* LocationListCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LocationListCell.swift; sourceTree = "<group>"; };
82+
FAEDF1E22617F90D0084C10D /* UITableViewCell+Extension.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "UITableViewCell+Extension.swift"; sourceTree = "<group>"; };
8183
/* End PBXFileReference section */
8284

8385
/* Begin PBXFrameworksBuildPhase section */
@@ -129,15 +131,16 @@
129131
FA7BA4E52594075C00E5C856 /* Extensions */ = {
130132
isa = PBXGroup;
131133
children = (
132-
FAA121ED24C50C4A009F12C2 /* UserDefaults+Extension.swift */,
133134
FAA1220624CCDD90009F12C2 /* Conversions.swift */,
135+
FAA121ED24C50C4A009F12C2 /* UserDefaults+Extension.swift */,
134136
FA7BA4F32594082F00E5C856 /* String+Extension.swift */,
135137
FA7BA4F0259407F600E5C856 /* UIColor+Extension.swift */,
136138
FA7BA4E62594077500E5C856 /* UIView+Extension.swift */,
137139
FA7BA4F72594085500E5C856 /* UIImage+Extension.swift */,
138140
FA7BA4FA259408A400E5C856 /* CALayer+Extension.swift */,
139141
FA7BA4EA259407E300E5C856 /* UIDevice+Extension.swift */,
140142
FA7BA4ED259407EB00E5C856 /* UIApplication+Extension.swift */,
143+
FAEDF1E22617F90D0084C10D /* UITableViewCell+Extension.swift */,
141144
);
142145
path = Extensions;
143146
sourceTree = "<group>";
@@ -290,6 +293,7 @@
290293
FA57BA6C24BFB314009FC13E /* Turbah.rcproject in Sources */,
291294
FAA121F124C50CAC009F12C2 /* SegmentedCell.swift in Sources */,
292295
FAA121FE24C7A4E6009F12C2 /* TickedSlider.swift in Sources */,
296+
FAEDF1E32617F90D0084C10D /* UITableViewCell+Extension.swift in Sources */,
293297
FA7BA4F1259407F600E5C856 /* UIColor+Extension.swift in Sources */,
294298
FACE7EC324C411FF002FE5FC /* LocationListCell.swift in Sources */,
295299
FACE7EC124C4006D002FE5FC /* CompassView.swift in Sources */,
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
//
2+
// UITableViewCell+Extension.swift
3+
// Turbah
4+
//
5+
// Created by Mahdi Qazwini on 4/2/21.
6+
// Copyright © 2021 MMQ. All rights reserved.
7+
//
8+
9+
import UIKit
10+
11+
extension UITableViewCell {
12+
static let cellID = "cellID"
13+
}

Turbah/Super.swift

-4
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,3 @@ let blurEffect = UIBlurEffect(style: .systemThinMaterial)
1919
func hapticFeedback(style: UIImpactFeedbackGenerator.FeedbackStyle = .light) {
2020
UIImpactFeedbackGenerator(style: style).impactOccurred()
2121
}
22-
23-
extension UITableViewCell {
24-
static let cellID = "cellID"
25-
}

0 commit comments

Comments
 (0)