From ce66b2466ec0debb56c832f6a6037b83028bb561 Mon Sep 17 00:00:00 2001 From: Matt Bruce Date: Mon, 29 Jan 2024 15:28:02 -0600 Subject: [PATCH] check to ensure this hasn't been created. Signed-off-by: Matt Bruce --- MVMCoreUI/Legacy/Views/MFLoadingSpinner.m | 1 + 1 file changed, 1 insertion(+) diff --git a/MVMCoreUI/Legacy/Views/MFLoadingSpinner.m b/MVMCoreUI/Legacy/Views/MFLoadingSpinner.m index 388416e0..11b11d79 100644 --- a/MVMCoreUI/Legacy/Views/MFLoadingSpinner.m +++ b/MVMCoreUI/Legacy/Views/MFLoadingSpinner.m @@ -42,6 +42,7 @@ } -(void) setup { + if (self.loader) { return; } self.loader = [[VDSLoader alloc] init]; [self addSubview: self.loader]; [NSLayoutConstraint pinViewToSuperview:self.loader useMargins:false];