mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-12-02 10:22:35 +00:00
Fix various SwiftLint warnings.
This commit is contained in:
1 parent
50140acac2
commit
0832a7cf67
52 files changed
+165
-282
No files matched your search
@@ -144,6 +144,4 @@ class MainTimelineFeedCell: UITableViewCell {
|
||||
|
||||
self.backgroundConfiguration = backgroundConfig
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -46,7 +46,6 @@ class MainTimelineIconFeedCell: UITableViewCell {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private func configure(_ cellData: MainTimelineCellData) {
|
||||
updateIndicatorView(cellData)
|
||||
articleTitle.numberOfLines = cellData.numberOfLines
|
||||
@@ -117,8 +116,6 @@ class MainTimelineIconFeedCell: UITableViewCell {
|
||||
private func applyTitleTextWithAttributes(_ state: UICellConfigurationState) {
|
||||
let attributedCellText = NSMutableAttributedString()
|
||||
|
||||
|
||||
|
||||
let isSelected = state.isSelected || state.isHighlighted || state.isFocused || state.isSwiped
|
||||
if cellData.title != "" {
|
||||
let paragraphStyle = NSMutableParagraphStyle()
|
||||
|
||||
@@ -1018,7 +1018,6 @@ private extension MainTimelineViewController {
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
let localizedMenuText = NSLocalizedString("Mark All as Read in “%@”", comment: "Command")
|
||||
let title = NSString.localizedStringWithFormat(localizedMenuText as NSString, feed.nameForDisplay) as String
|
||||
|
||||
|
||||
@@ -14,7 +14,6 @@ extension CGRect: MarkAsReadAlertControllerSourceType {}
|
||||
extension UIView: MarkAsReadAlertControllerSourceType {}
|
||||
extension UIBarButtonItem: MarkAsReadAlertControllerSourceType {}
|
||||
|
||||
|
||||
@MainActor struct MarkAsReadAlertController {
|
||||
|
||||
static func confirm<T>(_ controller: UIViewController?,
|
||||
@@ -45,7 +44,6 @@ extension UIBarButtonItem: MarkAsReadAlertControllerSourceType {}
|
||||
sourceType: T,
|
||||
completion: @escaping (UIAlertAction) -> Void) -> UIAlertController where T: MarkAsReadAlertControllerSourceType {
|
||||
|
||||
|
||||
let title = NSLocalizedString("Mark As Read", comment: "Mark As Read")
|
||||
let message = NSLocalizedString("You can turn this confirmation off in Settings.",
|
||||
comment: "You can turn this confirmation off in Settings.")
|
||||
|
||||
Reference in new issue
Block a user