Mark classes as final that can be marked as final.

This commit is contained in:
Brent Simmons
2025-01-25 11:01:12 -08:00
parent 48fc807f94
commit 5651764907
155 changed files with 172 additions and 172 deletions

View File

@@ -8,7 +8,7 @@
import UIKit
class CroppingPreviewParameters: UIPreviewParameters {
final class CroppingPreviewParameters: UIPreviewParameters {
override init() {
super.init()

View File

@@ -8,7 +8,7 @@
import UIKit
class ImageHeaderView: UITableViewHeaderFooterView {
final class ImageHeaderView: UITableViewHeaderFooterView {
static let rowHeight = CGFloat(integerLiteral: 88)

View File

@@ -9,7 +9,7 @@
import UIKit
@IBDesignable
class InteractiveLabel: UILabel, UIEditMenuInteractionDelegate {
final class InteractiveLabel: UILabel, UIEditMenuInteractionDelegate {
override init(frame: CGRect) {
super.init(frame: frame)

View File

@@ -8,7 +8,7 @@
import UIKit
class InteractiveNavigationController: UINavigationController {
final class InteractiveNavigationController: UINavigationController {
private let poppableDelegate = PoppableGestureRecognizerDelegate()

View File

@@ -8,7 +8,7 @@
import UIKit
class ModalNavigationController: UINavigationController {
final class ModalNavigationController: UINavigationController {
override func viewDidLayoutSubviews() {
super.viewDidLayoutSubviews()

View File

@@ -10,7 +10,7 @@ import Foundation
import UIKit
class NonIntrinsicButton: UIButton {
final class NonIntrinsicButton: UIButton {
// Prevent autolayout from messing around with our frame settings
override var intrinsicContentSize: CGSize {

View File

@@ -8,7 +8,7 @@
import UIKit
class NonIntrinsicImageView: UIImageView {
final class NonIntrinsicImageView: UIImageView {
// Prevent autolayout from messing around with our frame settings
override var intrinsicContentSize: CGSize {

View File

@@ -8,7 +8,7 @@
import UIKit
class NonIntrinsicLabel: UILabel {
final class NonIntrinsicLabel: UILabel {
// Prevent autolayout from messing around with our frame settings
override var intrinsicContentSize: CGSize {

View File

@@ -8,7 +8,7 @@
import UIKit
class RoundedProgressView: UIProgressView {
final class RoundedProgressView: UIProgressView {
override func layoutSubviews() {
super.layoutSubviews()

View File

@@ -8,7 +8,7 @@
import UIKit
class TickMarkSlider: UISlider {
final class TickMarkSlider: UISlider {
private var enableFeedback = false
private let feedbackGenerator = UISelectionFeedbackGenerator()

View File

@@ -8,7 +8,7 @@
import UIKit
class VibrantButton: UIButton {
final class VibrantButton: UIButton {
@IBInspectable var backgroundHighlightColor: UIColor = AppAssets.secondaryAccentColor

View File

@@ -8,7 +8,7 @@
import UIKit
class VibrantLabel: UILabel {
final class VibrantLabel: UILabel {
override init(frame: CGRect) {
super.init(frame: frame)

View File

@@ -70,7 +70,7 @@ class VibrantTableViewCell: UITableViewCell {
}
class VibrantBasicTableViewCell: VibrantTableViewCell {
final class VibrantBasicTableViewCell: VibrantTableViewCell {
@IBOutlet private var label: UILabel!
@IBOutlet private var detail: UILabel!