Skip to content

Commit

Permalink
better default header and footer messaging
Browse files Browse the repository at this point in the history
  • Loading branch information
bhlvoong committed Dec 6, 2016
1 parent d399273 commit 7fcfb21
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions LBTAComponents/Classes/DefaultCells.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@
import UIKit

class DefaultHeader: DefaultCell {

override var datasourceItem: Any? {
didSet {
if datasourceItem == nil {
label.text = "This is your default header"
}
}
}

override func setupViews() {
super.setupViews()
label.text = "Header Cell"
Expand All @@ -17,6 +26,15 @@ class DefaultHeader: DefaultCell {
}

class DefaultFooter: DefaultCell {

override var datasourceItem: Any? {
didSet {
if datasourceItem == nil {
label.text = "This is your default footer"
}
}
}

override func setupViews() {
super.setupViews()
label.text = "Footer Cell"
Expand Down

0 comments on commit 7fcfb21

Please sign in to comment.