From 901e3b14bbf1912ab2290c190ba13e54aa5cba46 Mon Sep 17 00:00:00 2001 From: Joseph Mattello Date: Wed, 4 Jan 2023 09:31:41 -0500 Subject: [PATCH] add final class to some classes Signed-off-by: Joseph Mattello --- AltStore/News/NewsCollectionViewCell.swift | 2 +- AltStore/News/NewsViewController.swift | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/AltStore/News/NewsCollectionViewCell.swift b/AltStore/News/NewsCollectionViewCell.swift index d9c4b276..3fae6638 100644 --- a/AltStore/News/NewsCollectionViewCell.swift +++ b/AltStore/News/NewsCollectionViewCell.swift @@ -8,7 +8,7 @@ import UIKit -class NewsCollectionViewCell: UICollectionViewCell +final class NewsCollectionViewCell: UICollectionViewCell { @IBOutlet var titleLabel: UILabel! @IBOutlet var captionLabel: UILabel! diff --git a/AltStore/News/NewsViewController.swift b/AltStore/News/NewsViewController.swift index 0cf77a9c..347d605f 100644 --- a/AltStore/News/NewsViewController.swift +++ b/AltStore/News/NewsViewController.swift @@ -14,7 +14,7 @@ import Roxas import Nuke -private class AppBannerFooterView: UICollectionReusableView +private final class AppBannerFooterView: UICollectionReusableView { let bannerView = AppBannerView(frame: .zero) let tapGestureRecognizer = UITapGestureRecognizer(target: nil, action: nil) @@ -41,7 +41,7 @@ private class AppBannerFooterView: UICollectionReusableView } } -class NewsViewController: UICollectionViewController +final class NewsViewController: UICollectionViewController { private lazy var dataSource = self.makeDataSource() private lazy var placeholderView = RSTPlaceholderView(frame: .zero)