Skip to content

Commit 1a4ee30

Browse files
author
Dane Miluski
committed
Make Static Cells Open
Goal: For simple things like custom fonts or manual margins, mark cells open to allow for subclassing to provide.
1 parent d6861a5 commit 1a4ee30

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

Static/ButtonCell.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import UIKit
22

3-
public class ButtonCell: UITableViewCell, Cell {
3+
open class ButtonCell: UITableViewCell, Cell {
44

55
// MARK: - Initializers
66

@@ -17,7 +17,7 @@ public class ButtonCell: UITableViewCell, Cell {
1717

1818
// MARK: - UIView
1919

20-
public override func tintColorDidChange() {
20+
open override func tintColorDidChange() {
2121
super.tintColorDidChange()
2222
textLabel?.textColor = tintColor
2323
}

Static/SubtitleCell.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import UIKit
22

3-
public class SubtitleCell: UITableViewCell, Cell {
3+
open class SubtitleCell: UITableViewCell, Cell {
44
public override init(style: UITableViewCellStyle, reuseIdentifier: String?) {
55
super.init(style: .subtitle, reuseIdentifier: reuseIdentifier)
66
}

Static/Value1Cell.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import UIKit
22

3-
public class Value1Cell: UITableViewCell, Cell {
3+
open class Value1Cell: UITableViewCell, Cell {
44
public override init(style: UITableViewCellStyle, reuseIdentifier: String?) {
55
super.init(style: .value1, reuseIdentifier: reuseIdentifier)
66
}

Static/Value2Cell.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import UIKit
22

3-
public class Value2Cell: UITableViewCell, Cell {
3+
open class Value2Cell: UITableViewCell, Cell {
44
public override init(style: UITableViewCellStyle, reuseIdentifier: String?) {
55
super.init(style: .value2, reuseIdentifier: reuseIdentifier)
66
}

0 commit comments

Comments
 (0)