Adds placeholder view for SyncStatusViewController

This commit is contained in:
Riley Testut 2019-02-21 12:47:19 -08:00
parent bec8d89acc
commit a377c1631a

View File

@ -104,8 +104,13 @@ private extension SyncStatusViewController
dynamicDataSource.cellIdentifierHandler = { _ in "PreviousSyncCell" }
dynamicDataSource.cellConfigurationHandler = { (cell, _, indexPath) in }
let placeholderView = RSTPlaceholderView()
placeholderView.textLabel.text = NSLocalizedString("No Games", comment: "")
placeholderView.detailTextLabel.text = NSLocalizedString("Check back here after adding games to Delta to see their sync status.", comment: "")
let dataSource = RSTCompositeTableViewDataSource(dataSources: [dynamicDataSource, fetchedDataSource])
dataSource.proxy = self
dataSource.placeholderView = placeholderView
return dataSource
}