Merge branch 'feature/atomic_vds_loader' into feature/vds_batch_two

This commit is contained in:
Matt Bruce 2024-01-29 15:31:37 -06:00
commit b8c929e3df
2 changed files with 5 additions and 1 deletions

View File

@ -29,7 +29,10 @@ open class LoadingSpinner: VDS.Loader, VDSMoleculeViewProtocol {
//--------------------------------------------------
// MARK: - MVMCoreViewProtocol
//--------------------------------------------------
open class func estimatedHeight(with model: MoleculeModelProtocol, _ delegateObject: MVMCoreUIDelegateObject?) -> CGFloat? { 40.0 }
open class func estimatedHeight(with model: MoleculeModelProtocol, _ delegateObject: MVMCoreUIDelegateObject?) -> CGFloat? {
guard let model = model as? LoadingSpinnerModel else { return 0 }
return model.diameter
}
open func updateView(_ size: CGFloat) { }

View File

@ -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];