Merge branch 'bugfix/list_margin_spacing' into 'develop'

Correcting a spacing issue

See merge request BPHV_MIPS/mvm_core_ui!421
This commit is contained in:
Pfeil, Scott Robert 2020-05-04 12:30:02 -04:00
commit 2c0eaa99f8

View File

@ -8,11 +8,12 @@
import Foundation
@objcMembers public class ListOneColumnFullWidthTextAllTextAndLinks: TableViewCell {
//-----------------------------------------------------
// MARK: - Outlets
//-----------------------------------------------------
var stack: Stack<StackModel>
let eyebrow = Label.commonLabelB3(true)
let headline = Label.commonLabelH3(true)
@ -26,7 +27,7 @@ import Foundation
public override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
stack = Stack<StackModel>.createStack(with: [eyebrow, headline, subHeadline, body, link])
stack.stackModel?.spacing = 0
stack.stackModel?.molecules[4].spacing = 2
stack.stackModel?.molecules[4].spacing = 8
super.init(style: style, reuseIdentifier: reuseIdentifier)
}
@ -37,13 +38,14 @@ import Foundation
//-----------------------------------------------------
// MARK: - View Lifecycle
//-----------------------------------------------------
override open func setupView() {
super.setupView()
addMolecule(stack)
stack.restack()
}
open override func set(with model: MoleculeModelProtocol, _ delegateObject: MVMCoreUIDelegateObject?, _ additionalData: [AnyHashable : Any]?){
open override func set(with model: MoleculeModelProtocol, _ delegateObject: MVMCoreUIDelegateObject?, _ additionalData: [AnyHashable: Any]?) {
super.set(with: model, delegateObject, additionalData)
guard let model = model as? ListOneColumnFullWidthTextAllTextAndLinksModel else { return }
stack.updateContainedMolecules(with: [model.eyebrow,