Address Steve's comments.

This commit is contained in:
Doug
2021-10-20 19:29:23 +01:00
parent 59c1aa5040
commit 0514b0bddc
6 changed files with 51 additions and 19 deletions
+14 -1
View File
@@ -21,9 +21,22 @@ final class Section: NSObject {
let tag: Int
var rows: [Row]
var headerTitle: String?
var attributedHeaderTitle: NSAttributedString?
var attributedFooterTitle: NSAttributedString?
var headerTitle: String? {
get {
attributedHeaderTitle?.string
}
set {
guard let newValue = newValue else {
attributedHeaderTitle = nil
return
}
attributedHeaderTitle = NSAttributedString(string: newValue)
}
}
var footerTitle: String? {
get {
attributedFooterTitle?.string