default dimension

This commit is contained in:
Kevin G Christiano 2020-06-19 10:59:53 -04:00
parent a03b50865f
commit 572968f193

View File

@ -20,6 +20,8 @@ open class LoadingSpinner: View {
public var speed: Float = 1.5 public var speed: Float = 1.5
public var defaultDimension: CGFloat = 40
//-------------------------------------------------- //--------------------------------------------------
// MARK: - Constraints // MARK: - Constraints
//-------------------------------------------------- //--------------------------------------------------
@ -196,7 +198,7 @@ open class LoadingSpinner: View {
strokeColor = model.strokeColor.uiColor strokeColor = model.strokeColor.uiColor
lineWidth = model.lineWidth lineWidth = model.lineWidth
pinWidthAndHeight(diameter: model.diameter ?? 40) pinWidthAndHeight(diameter: model.diameter ?? defaultDimension)
} }
open override class func estimatedHeight(with model: MoleculeModelProtocol, _ delegateObject: MVMCoreUIDelegateObject?) -> CGFloat? { open override class func estimatedHeight(with model: MoleculeModelProtocol, _ delegateObject: MVMCoreUIDelegateObject?) -> CGFloat? {