Skip to content
This repository has been archived by the owner on Nov 30, 2022. It is now read-only.

Commit

Permalink
Check for initial appearance
Browse files Browse the repository at this point in the history
  • Loading branch information
jzzocc committed Nov 28, 2022
1 parent 3a5ebdd commit 0e46a0e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion View Controllers/TableViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ class TableViewController: UITableViewController {
private var shouldKeepPlayingVideoAfterDismissal = false
private var newItemsViewHiddenConstraint: NSLayoutConstraint?
private var newItemsViewVisibleConstraint: NSLayoutConstraint?
private var isPastInitialAppearance = false
private let insetBottom: Bool
private weak var parentNavigationController: UINavigationController?

Expand Down Expand Up @@ -103,7 +104,11 @@ class TableViewController: UITableViewController {
override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)

refreshIfAble()
if isPastInitialAppearance {
refreshIfAble()
}

isPastInitialAppearance = true
}

override func scrollViewDidScroll(_ scrollView: UIScrollView) {
Expand Down

0 comments on commit 0e46a0e

Please sign in to comment.