Merge branch 'feature/container_open' into 'develop'
open See merge request BPHV_MIPS/mvm_core_ui!733
This commit is contained in:
commit
1f2d8f27df
@ -53,25 +53,22 @@ open class Container: View, ContainerProtocol {
|
|||||||
open func constrainView(_ view: UIView) {
|
open func constrainView(_ view: UIView) {
|
||||||
containerHelper.constrainView(view)
|
containerHelper.constrainView(view)
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// MARK: - MVMCoreViewProtocol
|
// MARK: - MVMCoreViewProtocol
|
||||||
public extension Container {
|
open override func updateView(_ size: CGFloat) {
|
||||||
|
|
||||||
override func updateView(_ size: CGFloat) {
|
|
||||||
super.updateView(size)
|
super.updateView(size)
|
||||||
(view as? MVMCoreViewProtocol)?.updateView(size)
|
(view as? MVMCoreViewProtocol)?.updateView(size)
|
||||||
containerHelper.updateViewMargins(self, model: containerModel, size: size)
|
containerHelper.updateViewMargins(self, model: containerModel, size: size)
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Will be called only once.
|
/// Will be called only once.
|
||||||
override func setupView() {
|
open override func setupView() {
|
||||||
super.setupView()
|
super.setupView()
|
||||||
isAccessibilityElement = false
|
isAccessibilityElement = false
|
||||||
backgroundColor = .clear
|
backgroundColor = .clear
|
||||||
}
|
}
|
||||||
|
|
||||||
func addAndContain(_ view: UIView) {
|
open func addAndContain(_ view: UIView) {
|
||||||
view.translatesAutoresizingMaskIntoConstraints = false
|
view.translatesAutoresizingMaskIntoConstraints = false
|
||||||
addSubview(view)
|
addSubview(view)
|
||||||
containerHelper.constrainView(view)
|
containerHelper.constrainView(view)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user