Skip to content

Commit

Permalink
removes flicker when launching template viewer from debugger
Browse files Browse the repository at this point in the history
  • Loading branch information
jakemor committed Sep 14, 2021
1 parent b01f9d2 commit 36db245
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Sources/Paywall/Debug/SWDebugViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -302,8 +302,8 @@ internal class SWDebugViewController: UIViewController {
@objc func pressedConsoleButton() {


self.activityIndicator.startAnimating()
self.previewContainerView.isHidden = true
// self.activityIndicator.startAnimating()
// self.previewContainerView.isHidden = true

Network.shared.paywalls { [weak self] result in

Expand All @@ -328,12 +328,12 @@ internal class SWDebugViewController: UIViewController {

case .failure(let error):
Logger.superwallDebug(string: "Debug Mode Error", error: error)
self?.activityIndicator.stopAnimating()
// self?.activityIndicator.stopAnimating()
}

OnMain {
self?.activityIndicator.stopAnimating()
self?.previewContainerView.isHidden = false
// self?.activityIndicator.stopAnimating()
// self?.previewContainerView.isHidden = false
}

}
Expand Down

0 comments on commit 36db245

Please sign in to comment.