diff --git a/MVMCoreUI/Atoms/TextFields/EntryField.swift b/MVMCoreUI/Atoms/TextFields/EntryField.swift index 8cb48268..86dad0f6 100644 --- a/MVMCoreUI/Atoms/TextFields/EntryField.swift +++ b/MVMCoreUI/Atoms/TextFields/EntryField.swift @@ -213,6 +213,13 @@ import UIKit layoutIfNeeded() } + open override func layoutSubviews() { + super.layoutSubviews() + + entryContainer.refreshUI() + setNeedsLayout() + } + /// Method to override. /// Intended to add the interactive content (i.e. textField) to the entryContainer. open func setupFieldContainerContent(_ container: UIView) { @@ -265,6 +272,8 @@ extension EntryField { guard let dictionary = json, !dictionary.isEmpty else { return } + entryContainer.setWithJSON(dictionary, delegateObject: delegateObject, additionalData: additionalData) + if let titleText = dictionary["title"] as? String { title = titleText } diff --git a/MVMCoreUI/Containers/views/FormView.swift b/MVMCoreUI/Containers/views/FormView.swift index 3e09bb12..1897766d 100644 --- a/MVMCoreUI/Containers/views/FormView.swift +++ b/MVMCoreUI/Containers/views/FormView.swift @@ -88,6 +88,7 @@ import UIKit override open func setupView() { super.setupView() + isOpaque = false layer.addSublayer(bottomBar) }