From dce8143ed2a28b70d0cbfa94f33b68bd75b18d19 Mon Sep 17 00:00:00 2001 From: Sumanth Nadigadda Date: Fri, 28 Jul 2023 17:35:59 +0530 Subject: [PATCH] changing access from public to open for few methods in base drop down field --- .../TextFields/Dropdown Fields/BaseDropdownEntryField.swift | 6 +++--- .../TextFields/Dropdown Fields/BaseDropdownFieldModel.swift | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/MVMCoreUI/Atomic/Atoms/FormFields/TextFields/Dropdown Fields/BaseDropdownEntryField.swift b/MVMCoreUI/Atomic/Atoms/FormFields/TextFields/Dropdown Fields/BaseDropdownEntryField.swift index 172f304d..96bb8acf 100644 --- a/MVMCoreUI/Atomic/Atoms/FormFields/TextFields/Dropdown Fields/BaseDropdownEntryField.swift +++ b/MVMCoreUI/Atomic/Atoms/FormFields/TextFields/Dropdown Fields/BaseDropdownEntryField.swift @@ -66,7 +66,7 @@ import MVMCore // MARK: - Setup //-------------------------------------------------- - @objc public override func setupFieldContainerContent(_ container: UIView) { + @objc open override func setupFieldContainerContent(_ container: UIView) { super.setupFieldContainerContent(container) container.addSubview(dropDownCaretView) @@ -79,7 +79,7 @@ import MVMCore dropDownCaretView.centerYAnchor.constraint(equalTo: container.centerYAnchor).isActive = true } - public 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) self.additionalData = additionalData guard let model = model as? BaseDropdownEntryFieldModel else { return } @@ -87,7 +87,7 @@ import MVMCore dropDownCaretView.setOptional(with: model.caretView, delegateObject, additionalData) } - @objc public override func dismissFieldInput(_ sender: Any?) { + @objc open override func dismissFieldInput(_ sender: Any?) { if !textField.isFirstResponder { performDropdownAction() } diff --git a/MVMCoreUI/Atomic/Atoms/FormFields/TextFields/Dropdown Fields/BaseDropdownFieldModel.swift b/MVMCoreUI/Atomic/Atoms/FormFields/TextFields/Dropdown Fields/BaseDropdownFieldModel.swift index d13935d5..e5f2e0b7 100644 --- a/MVMCoreUI/Atomic/Atoms/FormFields/TextFields/Dropdown Fields/BaseDropdownFieldModel.swift +++ b/MVMCoreUI/Atomic/Atoms/FormFields/TextFields/Dropdown Fields/BaseDropdownFieldModel.swift @@ -14,7 +14,7 @@ public var caretView: CaretViewModel? public var action: ActionModelProtocol? - public override class var identifier: String { "" } + open override class var identifier: String { "" } //-------------------------------------------------- // MARK: - Keys @@ -46,7 +46,7 @@ action = try typeContainer.decodeModelIfPresent(codingKey: .action) } - public override func encode(to encoder: Encoder) throws { + open override func encode(to encoder: Encoder) throws { try super.encode(to: encoder) var container = encoder.container(keyedBy: CodingKeys.self) try container.encode(moleculeName, forKey: .moleculeName)