-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Handled all swiftlint warnings and errors
- Loading branch information
1 parent
e0880d8
commit 76b5093
Showing
71 changed files
with
1,557 additions
and
1,511 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,3 @@ | ||
disabled_rules: | ||
- function_parameter_count | ||
- cyclomatic_complexity | ||
|
||
excluded: | ||
- Pods | ||
|
||
force_cast: warning | ||
|
||
type_name: | ||
validates_start_with_lowercase: false | ||
|
||
function_body_length: | ||
warning: 100 | ||
error: 400 | ||
|
||
file_length: | ||
warning: 800 | ||
error: 1200 | ||
|
||
line_length: 400 | ||
|
||
identifier_name: | ||
min_length: | ||
warning: 2 | ||
error: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// | ||
// UITableView+Extension.swift | ||
// DemoSwift | ||
// | ||
// Created by Iftekhar on 10/19/23. | ||
// Copyright © 2023 Iftekhar. All rights reserved. | ||
// | ||
|
||
import UIKit | ||
|
||
extension UITableView { | ||
func dequeueCell<T: UITableViewCell>(_: T.Type, for indexPath: IndexPath) -> T { | ||
let identifier: String = String(describing: T.self) | ||
guard let cell = dequeueReusableCell(withIdentifier: identifier, for: indexPath) as? T else { | ||
fatalError("Could not dequeue \(T.self)") | ||
} | ||
|
||
return cell | ||
} | ||
|
||
func dequeueHeaderFooter<T: UITableViewHeaderFooterView>(_: T.Type) -> T { | ||
let identifier: String = String(describing: T.self) | ||
if let view = dequeueReusableHeaderFooterView(withIdentifier: identifier) as? T { | ||
return view | ||
} else { | ||
return T(reuseIdentifier: identifier) | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.