Error in referencing.
This commit is contained in:
parent
7891b7fdbd
commit
e31918c051
@ -101,7 +101,6 @@
|
|||||||
52267A0723FFE25000906CBA /* ListOneColumnFullWidthTextAllTextAndLinks.swift in Sources */ = {isa = PBXBuildFile; fileRef = 52267A0623FFE25000906CBA /* ListOneColumnFullWidthTextAllTextAndLinks.swift */; };
|
52267A0723FFE25000906CBA /* ListOneColumnFullWidthTextAllTextAndLinks.swift in Sources */ = {isa = PBXBuildFile; fileRef = 52267A0623FFE25000906CBA /* ListOneColumnFullWidthTextAllTextAndLinks.swift */; };
|
||||||
5248BFEC23F12E350059236A /* ListThreeColumnPlanDataDivider.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5248BFEA23F12E350059236A /* ListThreeColumnPlanDataDivider.swift */; };
|
5248BFEC23F12E350059236A /* ListThreeColumnPlanDataDivider.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5248BFEA23F12E350059236A /* ListThreeColumnPlanDataDivider.swift */; };
|
||||||
5248BFED23F12E350059236A /* ListThreeColumnPlanDataDividerModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5248BFEB23F12E350059236A /* ListThreeColumnPlanDataDividerModel.swift */; };
|
5248BFED23F12E350059236A /* ListThreeColumnPlanDataDividerModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5248BFEB23F12E350059236A /* ListThreeColumnPlanDataDividerModel.swift */; };
|
||||||
525019E0240680AC00EED91C /* FourColumn in Resources */ = {isa = PBXBuildFile; fileRef = 525019DF240680AC00EED91C /* FourColumn */; };
|
|
||||||
8D24041123E7FB9E009E23BE /* ListLeftVariableIconWithRightCaret.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8D24041023E7FB9E009E23BE /* ListLeftVariableIconWithRightCaret.swift */; };
|
8D24041123E7FB9E009E23BE /* ListLeftVariableIconWithRightCaret.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8D24041023E7FB9E009E23BE /* ListLeftVariableIconWithRightCaret.swift */; };
|
||||||
8D24041523E7FC0B009E23BE /* ListLeftVariableIconWithRightCaretModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8D24041423E7FC0B009E23BE /* ListLeftVariableIconWithRightCaretModel.swift */; };
|
8D24041523E7FC0B009E23BE /* ListLeftVariableIconWithRightCaretModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8D24041423E7FC0B009E23BE /* ListLeftVariableIconWithRightCaretModel.swift */; };
|
||||||
8D448E5524050A46006211BB /* ListOneColumnFullWidthTextAllTextAndLinksModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8D448E5424050A46006211BB /* ListOneColumnFullWidthTextAllTextAndLinksModel.swift */; };
|
8D448E5524050A46006211BB /* ListOneColumnFullWidthTextAllTextAndLinksModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8D448E5424050A46006211BB /* ListOneColumnFullWidthTextAllTextAndLinksModel.swift */; };
|
||||||
@ -436,7 +435,6 @@
|
|||||||
52267A0623FFE25000906CBA /* ListOneColumnFullWidthTextAllTextAndLinks.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ListOneColumnFullWidthTextAllTextAndLinks.swift; sourceTree = "<group>"; };
|
52267A0623FFE25000906CBA /* ListOneColumnFullWidthTextAllTextAndLinks.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ListOneColumnFullWidthTextAllTextAndLinks.swift; sourceTree = "<group>"; };
|
||||||
5248BFEA23F12E350059236A /* ListThreeColumnPlanDataDivider.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ListThreeColumnPlanDataDivider.swift; sourceTree = "<group>"; };
|
5248BFEA23F12E350059236A /* ListThreeColumnPlanDataDivider.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ListThreeColumnPlanDataDivider.swift; sourceTree = "<group>"; };
|
||||||
5248BFEB23F12E350059236A /* ListThreeColumnPlanDataDividerModel.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ListThreeColumnPlanDataDividerModel.swift; sourceTree = "<group>"; };
|
5248BFEB23F12E350059236A /* ListThreeColumnPlanDataDividerModel.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ListThreeColumnPlanDataDividerModel.swift; sourceTree = "<group>"; };
|
||||||
525019DF240680AC00EED91C /* FourColumn */ = {isa = PBXFileReference; lastKnownFileType = folder; path = FourColumn; sourceTree = "<group>"; };
|
|
||||||
8D24041023E7FB9E009E23BE /* ListLeftVariableIconWithRightCaret.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ListLeftVariableIconWithRightCaret.swift; sourceTree = "<group>"; };
|
8D24041023E7FB9E009E23BE /* ListLeftVariableIconWithRightCaret.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ListLeftVariableIconWithRightCaret.swift; sourceTree = "<group>"; };
|
||||||
8D24041423E7FC0B009E23BE /* ListLeftVariableIconWithRightCaretModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ListLeftVariableIconWithRightCaretModel.swift; sourceTree = "<group>"; };
|
8D24041423E7FC0B009E23BE /* ListLeftVariableIconWithRightCaretModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ListLeftVariableIconWithRightCaretModel.swift; sourceTree = "<group>"; };
|
||||||
8D448E5424050A46006211BB /* ListOneColumnFullWidthTextAllTextAndLinksModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ListOneColumnFullWidthTextAllTextAndLinksModel.swift; sourceTree = "<group>"; };
|
8D448E5424050A46006211BB /* ListOneColumnFullWidthTextAllTextAndLinksModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ListOneColumnFullWidthTextAllTextAndLinksModel.swift; sourceTree = "<group>"; };
|
||||||
@ -1026,7 +1024,6 @@
|
|||||||
D22B38EC23F4E10700490EF6 /* SectionDividers */ = {
|
D22B38EC23F4E10700490EF6 /* SectionDividers */ = {
|
||||||
isa = PBXGroup;
|
isa = PBXGroup;
|
||||||
children = (
|
children = (
|
||||||
525019DF240680AC00EED91C /* FourColumn */,
|
|
||||||
52267A0523FFE0A900906CBA /* OneColumn */,
|
52267A0523FFE0A900906CBA /* OneColumn */,
|
||||||
D22B38ED23F4E11100490EF6 /* ThreeColumn */,
|
D22B38ED23F4E11100490EF6 /* ThreeColumn */,
|
||||||
);
|
);
|
||||||
@ -1632,7 +1629,6 @@
|
|||||||
files = (
|
files = (
|
||||||
D29DF2AF21E7B3A4003B2FB9 /* MFTextView.xib in Resources */,
|
D29DF2AF21E7B3A4003B2FB9 /* MFTextView.xib in Resources */,
|
||||||
D29DF31C21ECECC0003B2FB9 /* NHaasGroteskDSStd-75Bd.otf in Resources */,
|
D29DF31C21ECECC0003B2FB9 /* NHaasGroteskDSStd-75Bd.otf in Resources */,
|
||||||
525019E0240680AC00EED91C /* FourColumn in Resources */,
|
|
||||||
D29DF31D21ECECC0003B2FB9 /* NHaasGroteskDSStd-55Rg.otf in Resources */,
|
D29DF31D21ECECC0003B2FB9 /* NHaasGroteskDSStd-55Rg.otf in Resources */,
|
||||||
0A21DB8E235E06EF00C160A2 /* MFDigitTextField.xib in Resources */,
|
0A21DB8E235E06EF00C160A2 /* MFDigitTextField.xib in Resources */,
|
||||||
D29DF32C21EE8736003B2FB9 /* Localizable.strings in Resources */,
|
D29DF32C21EE8736003B2FB9 /* Localizable.strings in Resources */,
|
||||||
|
|||||||
@ -1,72 +0,0 @@
|
|||||||
//
|
|
||||||
// ListFourColumnDataUsageDivider.swift
|
|
||||||
// MVMCoreUI
|
|
||||||
//
|
|
||||||
// Created by Lekshmi S on 18/02/20.
|
|
||||||
// Copyright © 2020 Verizon Wireless. All rights reserved.
|
|
||||||
//
|
|
||||||
|
|
||||||
import Foundation
|
|
||||||
|
|
||||||
@objcMembers open class ListFourColumnDataUsageDivider: TableViewCell {
|
|
||||||
|
|
||||||
//-------------------------------------------------------
|
|
||||||
// MARK: - Outlets
|
|
||||||
//-------------------------------------------------------
|
|
||||||
let label1 = Label.commonLabelB1(true)
|
|
||||||
let label2 = Label.commonLabelB1(true)
|
|
||||||
let label3 = Label.commonLabelB1(true)
|
|
||||||
let label4 = Label.commonLabelB1(true)
|
|
||||||
let stack = Stack<StackModel>(frame: .zero)
|
|
||||||
|
|
||||||
//-------------------------------------------------------
|
|
||||||
// MARK: - View Lifecycle
|
|
||||||
//-------------------------------------------------------
|
|
||||||
open override func updateView(_ size: CGFloat) {
|
|
||||||
super.updateView(size)
|
|
||||||
stack.updateView(size)
|
|
||||||
}
|
|
||||||
|
|
||||||
open override func setupView() {
|
|
||||||
super.setupView()
|
|
||||||
stack.translatesAutoresizingMaskIntoConstraints = false
|
|
||||||
stack.stackItems = [StackItem(andContain: label1), StackItem(andContain: label2), StackItem(andContain: label3), StackItem(andContain: label4)]
|
|
||||||
contentView.addSubview(stack)
|
|
||||||
containerHelper.constrainView(stack)
|
|
||||||
}
|
|
||||||
|
|
||||||
//------------------------------------------------------
|
|
||||||
// MARK: - Molecule
|
|
||||||
//------------------------------------------------------
|
|
||||||
open override func reset() {
|
|
||||||
super.reset()
|
|
||||||
stack.reset()
|
|
||||||
}
|
|
||||||
|
|
||||||
public override func setWithModel(_ model: MoleculeModelProtocol?, _ delegateObject: MVMCoreUIDelegateObject?, _ additionalData: [AnyHashable : Any]?) {
|
|
||||||
super.setWithModel(model, delegateObject, additionalData)
|
|
||||||
guard let model = model as? ListFourColumnDataUsageDividerModel else { return }
|
|
||||||
label1.setWithModel(model.label1, delegateObject, additionalData)
|
|
||||||
label2.setWithModel(model.label2, delegateObject, additionalData)
|
|
||||||
label3.setWithModel(model.label3, delegateObject, additionalData)
|
|
||||||
label4.setWithModel(model.label4, delegateObject, additionalData)
|
|
||||||
|
|
||||||
//Create a stack model to use for the internal stack and set the alignment of labels
|
|
||||||
let label1 = StackItemModel(percent: 20)
|
|
||||||
label1.horizontalAlignment = .leading
|
|
||||||
let label2 = StackItemModel(percent: 40)
|
|
||||||
label2.horizontalAlignment = .leading
|
|
||||||
let label3 = StackItemModel(percent: 20)
|
|
||||||
label3.horizontalAlignment = .leading
|
|
||||||
let label4 = StackItemModel(percent: 20)
|
|
||||||
label4.horizontalAlignment = .leading
|
|
||||||
let stackModel = StackModel(molecules: [label1, label2, label3, label4])
|
|
||||||
stackModel.axis = .horizontal
|
|
||||||
stack.model = stackModel
|
|
||||||
stack.restack()
|
|
||||||
}
|
|
||||||
|
|
||||||
public override class func estimatedHeight(forRow molecule: MoleculeModelProtocol?, delegateObject: MVMCoreUIDelegateObject?) -> CGFloat {
|
|
||||||
return 90
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,59 +0,0 @@
|
|||||||
//
|
|
||||||
// ListFourColumnDataUsageDividerModel.swift
|
|
||||||
// MVMCoreUI
|
|
||||||
//
|
|
||||||
// Created by Lekshmi S on 18/02/20.
|
|
||||||
// Copyright © 2020 Verizon Wireless. All rights reserved.
|
|
||||||
//
|
|
||||||
|
|
||||||
import Foundation
|
|
||||||
|
|
||||||
public class ListFourColumnDataUsageDividerModel: ListItemModel, MoleculeModelProtocol {
|
|
||||||
public static var identifier: String = "list4CDiv"
|
|
||||||
public var label1: LabelModel?
|
|
||||||
public var label2: LabelModel?
|
|
||||||
public var label3: LabelModel?
|
|
||||||
public var label4: LabelModel?
|
|
||||||
|
|
||||||
public init(label1: LabelModel, label2: LabelModel, label3: LabelModel, label4: LabelModel) {
|
|
||||||
self.label1 = label1
|
|
||||||
self.label2 = label2
|
|
||||||
self.label3 = label3
|
|
||||||
self.label4 = label4
|
|
||||||
super.init()
|
|
||||||
setDefaults()
|
|
||||||
}
|
|
||||||
|
|
||||||
// Defaults to set
|
|
||||||
override public func setDefaults() {
|
|
||||||
super.setDefaults()
|
|
||||||
style = "tallDivider"
|
|
||||||
}
|
|
||||||
|
|
||||||
private enum CodingKeys: String, CodingKey {
|
|
||||||
case moleculeName
|
|
||||||
case label1
|
|
||||||
case label2
|
|
||||||
case label3
|
|
||||||
case label4
|
|
||||||
}
|
|
||||||
|
|
||||||
required public init(from decoder: Decoder) throws {
|
|
||||||
let typeContainer = try decoder.container(keyedBy: CodingKeys.self)
|
|
||||||
label1 = try typeContainer.decodeIfPresent(LabelModel.self, forKey: .label1)
|
|
||||||
label2 = try typeContainer.decodeIfPresent(LabelModel.self, forKey: .label2)
|
|
||||||
label3 = try typeContainer.decodeIfPresent(LabelModel.self, forKey: .label3)
|
|
||||||
label4 = try typeContainer.decodeIfPresent(LabelModel.self, forKey: .label4)
|
|
||||||
try super.init(from: decoder)
|
|
||||||
}
|
|
||||||
|
|
||||||
public override func encode(to encoder: Encoder) throws {
|
|
||||||
try super.encode(to: encoder)
|
|
||||||
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
||||||
try container.encodeIfPresent(moleculeName, forKey: .moleculeName)
|
|
||||||
try container.encodeIfPresent(label1, forKey: .label1)
|
|
||||||
try container.encodeIfPresent(label2, forKey: .label2)
|
|
||||||
try container.encodeIfPresent(label3, forKey: .label3)
|
|
||||||
try container.encodeIfPresent(label4, forKey: .label4)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Loading…
Reference in New Issue
Block a user