adding again

This commit is contained in:
Kevin G Christiano 2020-03-30 16:17:14 -04:00
parent 338a3c8a03
commit 290b5276b2
3 changed files with 7 additions and 5 deletions

View File

@ -879,12 +879,12 @@
0A30D3DC2432741A00124AF0 /* CarouselIndicator */ = {
isa = PBXGroup;
children = (
0A30D3DD2432741A00124AF0 /* BarsCarouselIndicatorModel.swift */,
0A30D3DE2432741A00124AF0 /* NumericCarouselIndicatorModel.swift */,
0A30D3DF2432741A00124AF0 /* NumericIndicatorView.swift */,
0A30D3E02432741A00124AF0 /* BarsIndicatorView.swift */,
0A30D3E12432741A00124AF0 /* CarouselIndicatorModel.swift */,
0A30D3E22432741A00124AF0 /* CarouselIndicator.swift */,
0A30D3DE2432741A00124AF0 /* NumericCarouselIndicatorModel.swift */,
0A30D3DF2432741A00124AF0 /* NumericIndicatorView.swift */,
0A30D3DD2432741A00124AF0 /* BarsCarouselIndicatorModel.swift */,
0A30D3E02432741A00124AF0 /* BarsIndicatorView.swift */,
);
name = CarouselIndicator;
path = ../../../../../../../mvmrc_ios/mvm_core_ui/MVMCoreUI/Atoms/Views/CarouselIndicator;

View File

@ -123,6 +123,8 @@ import Foundation
// Other Organisms
MoleculeObjectMapping.shared()?.register(viewClass: Carousel.self, viewModelClass: CarouselModel.self)
MoleculeObjectMapping.shared()?.register(viewClass: BarsIndicatorView.self, viewModelClass: BarsCarouselIndicatorModel.self)
MoleculeObjectMapping.shared()?.register(viewClass: NumericIndicatorView.self, viewModelClass: NumericCarouselIndicatorModel.self)
// Designed List Items
MoleculeObjectMapping.shared()?.register(viewClass: ListLeftVariableIconWithRightCaret.self, viewModelClass: ListLeftVariableIconWithRightCaretModel.self)

View File

@ -179,7 +179,7 @@ open class Carousel: View {
var pagingView: (UIView & CarouselPageControlProtocol)? = nil
if let molecule = molecule {
pagingView = MoleculeObjectMapping.shared()?.createMolecule(molecule, delegateObject: delegateObject) as? (UIView & MVMCoreUIPagingProtocol) as! (UIView & CarouselPageControlProtocol)
pagingView = MoleculeObjectMapping.shared()?.createMolecule(molecule, delegateObject: delegateObject) as? (UIView & CarouselPageControlProtocol)
}
addPaging(view: pagingView, position: (CGFloat(molecule?.position ?? 20)))