Skip to content

Commit 7ae9278

Browse files
author
kgellert
committed
Make classes final
1 parent 496203e commit 7ae9278

File tree

7 files changed

+8
-7
lines changed

7 files changed

+8
-7
lines changed

Sources/Views/Controller.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@ open class FastisController<Value: FastisValue>: UIViewController, JTACMonthView
103103
let view = CurrentValueView<Value>(config: self.config.currentValueView)
104104
view.currentValue = self.value
105105
view.translatesAutoresizingMaskIntoConstraints = false
106-
view.onClear = {
106+
view.onClear = { [weak self] in
107+
guard let self else { return }
107108
self.value = nil
108109
self.viewConfigs.removeAll()
109110
self.calendarView.deselectAllDates()

Sources/Views/CurrentValueView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
import UIKit
1010

11-
class CurrentValueView<Value: FastisValue>: UIView {
11+
final class CurrentValueView<Value: FastisValue>: UIView {
1212

1313
// MARK: - Outlets
1414

Sources/Views/DayCell.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import UIKit
1010
import JTAppleCalendar
1111

12-
class DayCell: JTACDayCell {
12+
final class DayCell: JTACDayCell {
1313

1414
// MARK: - Outlets
1515

Sources/Views/MonthHeader.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import UIKit
1010
import JTAppleCalendar
1111

12-
class MonthHeader: JTACMonthReusableView {
12+
final class MonthHeader: JTACMonthReusableView {
1313

1414
// MARK: - Outlets
1515

Sources/Views/ShortcutContainerView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
import UIKit
1010

11-
class ShortcutContainerView<Value: FastisValue>: UIView {
11+
final class ShortcutContainerView<Value: FastisValue>: UIView {
1212

1313
// MARK: - Outlets
1414

Sources/Views/ShortcutItemView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import UIKit
1010
import PrettyCards
1111

12-
class ShortcutItemView: UIView {
12+
final class ShortcutItemView: UIView {
1313

1414
// MARK: - Outlets
1515

Sources/Views/WeekView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
import UIKit
1010

11-
class WeekView: UIView {
11+
final class WeekView: UIView {
1212

1313
// MARK: - Outlets
1414

0 commit comments

Comments
 (0)