From eeba7bba02dbc935c79e045501e8841784ea0286 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Wed, 15 Jun 2022 11:01:20 -0400 Subject: [PATCH] Actually update loading label For some reason, I never actually hooked up the field to actually disappear when loading successfully. --- SilicaViewer/Base.lproj/Main.storyboard | 1 + SilicaViewer/ViewController.swift | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/SilicaViewer/Base.lproj/Main.storyboard b/SilicaViewer/Base.lproj/Main.storyboard index 4b8360d..ff97351 100644 --- a/SilicaViewer/Base.lproj/Main.storyboard +++ b/SilicaViewer/Base.lproj/Main.storyboard @@ -407,6 +407,7 @@ Dk51bWJlciBvZiBMYXllcnM + diff --git a/SilicaViewer/ViewController.swift b/SilicaViewer/ViewController.swift index 5c16eb3..93b5a9f 100644 --- a/SilicaViewer/ViewController.swift +++ b/SilicaViewer/ViewController.swift @@ -7,7 +7,6 @@ class ViewController: NSViewController { @IBOutlet weak var loadingField: NSTextField! override func viewDidLoad() { - imageView.setContentCompressionResistancePriority( .defaultLow, for: .horizontal) @@ -23,12 +22,12 @@ class ViewController: NSViewController { DispatchQueue.main.async { guard let image = document?.makeComposite() else { - //self.loadingField.stringValue = "Failed to load." + self.loadingField.stringValue = "Failed to load." return } self.imageView.image = image - //self.loadingField.isHidden = true + self.loadingField.isHidden = true } }