chore: add a debug menu entry for testing EmptyView

This commit is contained in:
sunxiaojian 2021-04-22 15:52:10 +08:00
parent 326aea36cd
commit 64b4247706
1 changed files with 8 additions and 0 deletions

View File

@ -25,6 +25,14 @@ extension HomeTimelineViewController {
guard let self = self else { return }
self.showWelcomeAction(action)
},
UIAction(title: "Show Or Remove EmptyView", image: UIImage(systemName: "clear"), attributes: []) { [weak self] action in
guard let self = self else { return }
if self.emptyView.superview != nil {
self.emptyView.removeFromSuperview()
} else {
self.showEmptyView()
}
},
UIAction(title: "Show Public Timeline", image: UIImage(systemName: "list.dash"), attributes: []) { [weak self] action in
guard let self = self else { return }
self.showPublicTimelineAction(action)