mirror of
https://github.com/metabolist/metatext.git
synced 2024-11-28 19:11:30 +00:00
Check for initial appearance
This commit is contained in:
parent
3a5ebddad5
commit
0e46a0eb28
1 changed files with 6 additions and 1 deletions
|
@ -23,6 +23,7 @@ class TableViewController: UITableViewController {
|
||||||
private var shouldKeepPlayingVideoAfterDismissal = false
|
private var shouldKeepPlayingVideoAfterDismissal = false
|
||||||
private var newItemsViewHiddenConstraint: NSLayoutConstraint?
|
private var newItemsViewHiddenConstraint: NSLayoutConstraint?
|
||||||
private var newItemsViewVisibleConstraint: NSLayoutConstraint?
|
private var newItemsViewVisibleConstraint: NSLayoutConstraint?
|
||||||
|
private var isPastInitialAppearance = false
|
||||||
private let insetBottom: Bool
|
private let insetBottom: Bool
|
||||||
private weak var parentNavigationController: UINavigationController?
|
private weak var parentNavigationController: UINavigationController?
|
||||||
|
|
||||||
|
@ -103,9 +104,13 @@ class TableViewController: UITableViewController {
|
||||||
override func viewWillAppear(_ animated: Bool) {
|
override func viewWillAppear(_ animated: Bool) {
|
||||||
super.viewWillAppear(animated)
|
super.viewWillAppear(animated)
|
||||||
|
|
||||||
|
if isPastInitialAppearance {
|
||||||
refreshIfAble()
|
refreshIfAble()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
isPastInitialAppearance = true
|
||||||
|
}
|
||||||
|
|
||||||
override func scrollViewDidScroll(_ scrollView: UIScrollView) {
|
override func scrollViewDidScroll(_ scrollView: UIScrollView) {
|
||||||
guard scrollView.isDragging else { return }
|
guard scrollView.isDragging else { return }
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue