From a377c1631a52176960001f4dc17bfdcc4e2c191c Mon Sep 17 00:00:00 2001 From: Riley Testut Date: Thu, 21 Feb 2019 12:47:19 -0800 Subject: [PATCH] Adds placeholder view for SyncStatusViewController --- Delta/Settings/Syncing/SyncStatusViewController.swift | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Delta/Settings/Syncing/SyncStatusViewController.swift b/Delta/Settings/Syncing/SyncStatusViewController.swift index 8990f72..b94ac50 100644 --- a/Delta/Settings/Syncing/SyncStatusViewController.swift +++ b/Delta/Settings/Syncing/SyncStatusViewController.swift @@ -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 }