Merge branch 'feature/atomic_vds_loader' into feature/vds_batch_two
This commit is contained in:
commit
b8c929e3df
@ -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) { }
|
||||
|
||||
|
||||
@ -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];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user