default dimension
This commit is contained in:
parent
a03b50865f
commit
572968f193
@ -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? {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user