check to ensure this hasn't been created.

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2024-01-29 15:28:02 -06:00
parent 8201b8fad4
commit ce66b2466e

View File

@ -42,6 +42,7 @@
} }
-(void) setup { -(void) setup {
if (self.loader) { return; }
self.loader = [[VDSLoader alloc] init]; self.loader = [[VDSLoader alloc] init];
[self addSubview: self.loader]; [self addSubview: self.loader];
[NSLayoutConstraint pinViewToSuperview:self.loader useMargins:false]; [NSLayoutConstraint pinViewToSuperview:self.loader useMargins:false];