added 'public' to current initializers
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
33ad5a3630
commit
d90503e988
@ -14,7 +14,7 @@ open class VisibleBehaviorForVideoModel: PageBehaviorModelProtocol {
|
|||||||
public var shouldAllowMultipleInstances: Bool = true
|
public var shouldAllowMultipleInstances: Bool = true
|
||||||
public weak var videoModel: VideoModel?
|
public weak var videoModel: VideoModel?
|
||||||
|
|
||||||
init(with videoModel: VideoModel) {
|
public init(with videoModel: VideoModel) {
|
||||||
self.videoModel = videoModel
|
self.videoModel = videoModel
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -7,6 +7,7 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import UIKit
|
import UIKit
|
||||||
|
import MVMCore
|
||||||
|
|
||||||
public class CornerLabelsModel: ParentMoleculeModelProtocol {
|
public class CornerLabelsModel: ParentMoleculeModelProtocol {
|
||||||
public static var identifier: String = "cornerLabels"
|
public static var identifier: String = "cornerLabels"
|
||||||
@ -20,7 +21,7 @@ public class CornerLabelsModel: ParentMoleculeModelProtocol {
|
|||||||
[molecule, topLeftLabel, topRightLabel, bottomLeftLabel, bottomRightLabel].compactMap { $0 }
|
[molecule, topLeftLabel, topRightLabel, bottomLeftLabel, bottomRightLabel].compactMap { $0 }
|
||||||
}
|
}
|
||||||
|
|
||||||
init(with molecule: MoleculeModelProtocol?) {
|
public init(with molecule: MoleculeModelProtocol?) {
|
||||||
self.molecule = molecule
|
self.molecule = molecule
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -7,6 +7,7 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
import MVMCore
|
||||||
|
|
||||||
public class LabelToggleModel: MoleculeModelProtocol {
|
public class LabelToggleModel: MoleculeModelProtocol {
|
||||||
public static var identifier: String = "labelToggle"
|
public static var identifier: String = "labelToggle"
|
||||||
@ -15,7 +16,7 @@ public class LabelToggleModel: MoleculeModelProtocol {
|
|||||||
public var label: LabelModel
|
public var label: LabelModel
|
||||||
public var toggle: ToggleModel
|
public var toggle: ToggleModel
|
||||||
|
|
||||||
init(_ label: LabelModel, _ toggle: ToggleModel) {
|
public init(_ label: LabelModel, _ toggle: ToggleModel) {
|
||||||
self.label = label
|
self.label = label
|
||||||
self.toggle = toggle
|
self.toggle = toggle
|
||||||
}
|
}
|
||||||
|
|||||||
@ -22,7 +22,7 @@ public class BGImageHeadlineBodyButtonModel: ContainerModel, MoleculeModelProtoc
|
|||||||
// MARK: - Initializer
|
// MARK: - Initializer
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
|
|
||||||
init(headlineBody: HeadlineBodyModel, image: ImageViewModel) {
|
public init(headlineBody: HeadlineBodyModel, image: ImageViewModel) {
|
||||||
self.headlineBody = headlineBody
|
self.headlineBody = headlineBody
|
||||||
self.image = image
|
self.image = image
|
||||||
super.init()
|
super.init()
|
||||||
|
|||||||
@ -22,7 +22,7 @@ public class HeadlineBodyCaretLinkImageModel: ContainerModel, MoleculeModelProto
|
|||||||
// MARK: - Initializer
|
// MARK: - Initializer
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
|
|
||||||
init(headlineBody: HeadlineBodyModel, image: ImageViewModel) {
|
public init(headlineBody: HeadlineBodyModel, image: ImageViewModel) {
|
||||||
self.headlineBody = headlineBody
|
self.headlineBody = headlineBody
|
||||||
self.image = image
|
self.image = image
|
||||||
super.init()
|
super.init()
|
||||||
|
|||||||
@ -75,7 +75,7 @@ open class Container: View, ContainerProtocol {
|
|||||||
self.view = view
|
self.view = view
|
||||||
}
|
}
|
||||||
|
|
||||||
convenience init(andContain view: UIView) {
|
public convenience init(andContain view: UIView) {
|
||||||
self.init()
|
self.init()
|
||||||
addAndContain(view)
|
addAndContain(view)
|
||||||
}
|
}
|
||||||
|
|||||||
@ -20,7 +20,11 @@ public class ClearFormFieldEffectModel: FormFieldEffectProtocol {
|
|||||||
public var activatedRuleIds: [String]?
|
public var activatedRuleIds: [String]?
|
||||||
public var rules: [RulesProtocol]
|
public var rules: [RulesProtocol]
|
||||||
|
|
||||||
init(_ fieldKey: String, activatedRuleIds: [String], rules: [RulesProtocol]) {
|
//--------------------------------------------------
|
||||||
|
// MARK: - Initializer
|
||||||
|
//--------------------------------------------------
|
||||||
|
|
||||||
|
public init(_ fieldKey: String, activatedRuleIds: [String], rules: [RulesProtocol]) {
|
||||||
self.fieldKey = fieldKey
|
self.fieldKey = fieldKey
|
||||||
self.activatedRuleIds = activatedRuleIds
|
self.activatedRuleIds = activatedRuleIds
|
||||||
self.rules = rules
|
self.rules = rules
|
||||||
|
|||||||
@ -18,8 +18,12 @@ public class DisableFormFieldEffectModel: FormFieldEffectProtocol {
|
|||||||
public var fieldKey: String = ""
|
public var fieldKey: String = ""
|
||||||
public var activatedRuleIds: [String]?
|
public var activatedRuleIds: [String]?
|
||||||
public var rules: [RulesProtocol]
|
public var rules: [RulesProtocol]
|
||||||
|
|
||||||
init(_ fieldKey: String, _ activatedRuleIds: [String], _ rules: [RulesProtocol]) {
|
//--------------------------------------------------
|
||||||
|
// MARK: - Initializer
|
||||||
|
//--------------------------------------------------
|
||||||
|
|
||||||
|
public init(_ fieldKey: String, _ activatedRuleIds: [String], _ rules: [RulesProtocol]) {
|
||||||
self.fieldKey = fieldKey
|
self.fieldKey = fieldKey
|
||||||
self.activatedRuleIds = activatedRuleIds
|
self.activatedRuleIds = activatedRuleIds
|
||||||
self.rules = rules
|
self.rules = rules
|
||||||
|
|||||||
@ -19,7 +19,11 @@ public class DynamicRuleFormFieldEffectModel: FormFieldEffectProtocol {
|
|||||||
public var activatedRuleIds: [String]?
|
public var activatedRuleIds: [String]?
|
||||||
public var rules: [RulesProtocol]
|
public var rules: [RulesProtocol]
|
||||||
|
|
||||||
init(_ fieldKey: String, activatedRuleIds: [String], rules: [RulesProtocol]) {
|
//--------------------------------------------------
|
||||||
|
// MARK: - Initializer
|
||||||
|
//--------------------------------------------------
|
||||||
|
|
||||||
|
public init(_ fieldKey: String, activatedRuleIds: [String], rules: [RulesProtocol]) {
|
||||||
self.fieldKey = fieldKey
|
self.fieldKey = fieldKey
|
||||||
self.activatedRuleIds = activatedRuleIds
|
self.activatedRuleIds = activatedRuleIds
|
||||||
self.rules = rules
|
self.rules = rules
|
||||||
|
|||||||
@ -21,7 +21,11 @@ public class EnableFormFieldEffectModel: FormFieldEffectProtocol {
|
|||||||
public var activatedRuleIds: [String]?
|
public var activatedRuleIds: [String]?
|
||||||
public var rules: [RulesProtocol]
|
public var rules: [RulesProtocol]
|
||||||
|
|
||||||
init(_ fieldKey: String, activatedRuleIds: [String], rules: [RulesProtocol]) {
|
//--------------------------------------------------
|
||||||
|
// MARK: - Initializer
|
||||||
|
//--------------------------------------------------
|
||||||
|
|
||||||
|
public init(_ fieldKey: String, activatedRuleIds: [String], rules: [RulesProtocol]) {
|
||||||
self.fieldKey = fieldKey
|
self.fieldKey = fieldKey
|
||||||
self.activatedRuleIds = activatedRuleIds
|
self.activatedRuleIds = activatedRuleIds
|
||||||
self.rules = rules
|
self.rules = rules
|
||||||
|
|||||||
@ -18,8 +18,12 @@ public class HideFormFieldEffectModel: FormFieldEffectProtocol {
|
|||||||
public var fieldKey: String = ""
|
public var fieldKey: String = ""
|
||||||
public var activatedRuleIds: [String]?
|
public var activatedRuleIds: [String]?
|
||||||
public var rules: [RulesProtocol]
|
public var rules: [RulesProtocol]
|
||||||
|
|
||||||
init(_ fieldKey: String, _ activatedRuleIds: [String], _ rules: [RulesProtocol]) {
|
//--------------------------------------------------
|
||||||
|
// MARK: - Initializer
|
||||||
|
//--------------------------------------------------
|
||||||
|
|
||||||
|
public init(_ fieldKey: String, _ activatedRuleIds: [String], _ rules: [RulesProtocol]) {
|
||||||
self.fieldKey = fieldKey
|
self.fieldKey = fieldKey
|
||||||
self.activatedRuleIds = activatedRuleIds
|
self.activatedRuleIds = activatedRuleIds
|
||||||
self.rules = rules
|
self.rules = rules
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user