diff --git a/MVMCoreUI/Atoms/Views/Label.swift b/MVMCoreUI/Atoms/Views/Label.swift index 8c41cefc..06ddbed5 100644 --- a/MVMCoreUI/Atoms/Views/Label.swift +++ b/MVMCoreUI/Atoms/Views/Label.swift @@ -182,7 +182,7 @@ public typealias ActionBlock = () -> Void switch alignment { case "center": label.textAlignment = .center - case "trailing": + case "right": label.textAlignment = .right default: label.textAlignment = .left diff --git a/MVMCoreUI/Molecules/CornerLabels.swift b/MVMCoreUI/Molecules/CornerLabels.swift index 18730336..930e1c57 100644 --- a/MVMCoreUI/Molecules/CornerLabels.swift +++ b/MVMCoreUI/Molecules/CornerLabels.swift @@ -133,26 +133,26 @@ import UIKit public override func setAsMolecule() { super.setAsMolecule() - topLeftLabel.setAsMolecule() - topRightLabel.setAsMolecule() - bottomLeftLabel.setAsMolecule() - bottomRightLabel.setAsMolecule() + styleDefault() } public override func reset() { super.reset() - topLeftLabel.styleB1(true) - topRightLabel.styleB1(true) - bottomLeftLabel.styleB3(true) - bottomRightLabel.styleB3(true) - + styleDefault() spaceAboveMolecule = 6.0 spaceBelowMolecule = 6.0 molecule?.reset?() } + func styleDefault() { + topLeftLabel.styleB1(true) + topRightLabel.styleB1(true) + bottomLeftLabel.styleB3(true) + bottomRightLabel.styleB3(true) + } + public override static func estimatedHeight(forRow json: [AnyHashable : Any]?, delegateObject: MVMCoreUIDelegateObject?) -> CGFloat { return 34 }