mirror of
https://github.com/metabolist/metatext.git
synced 2024-11-25 01:31:02 +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,7 +104,11 @@ class TableViewController: UITableViewController {
|
||||||
override func viewWillAppear(_ animated: Bool) {
|
override func viewWillAppear(_ animated: Bool) {
|
||||||
super.viewWillAppear(animated)
|
super.viewWillAppear(animated)
|
||||||
|
|
||||||
refreshIfAble()
|
if isPastInitialAppearance {
|
||||||
|
refreshIfAble()
|
||||||
|
}
|
||||||
|
|
||||||
|
isPastInitialAppearance = true
|
||||||
}
|
}
|
||||||
|
|
||||||
override func scrollViewDidScroll(_ scrollView: UIScrollView) {
|
override func scrollViewDidScroll(_ scrollView: UIScrollView) {
|
||||||
|
|
Loading…
Reference in a new issue