undo top labels bottom buttons view changes molecule delegates and spacing blocks Primary Button Molecule remove module name from swift files.
33 lines
1.1 KiB
Swift
33 lines
1.1 KiB
Swift
//
|
|
// MoleculeStackCenteredTemplate.swift
|
|
// MVMCoreUI
|
|
//
|
|
// Created by Scott Pfeil on 2/12/19.
|
|
// Copyright © 2019 Verizon Wireless. All rights reserved.
|
|
//
|
|
|
|
import UIKit
|
|
|
|
public class MoleculeStackCenteredTemplate: ThreeLayerViewController {
|
|
|
|
public override func viewForMiddle() -> UIView? {
|
|
let molecule = loadObject?.pageJSON?.optionalDictionaryForKey("MoleculeStack")
|
|
let moleculeStack = MVMCoreUIMoleculeStackView(withJSON: molecule, delegate: self)
|
|
return moleculeStack
|
|
}
|
|
|
|
public override func viewForTop() -> UIView? {
|
|
guard let moleculeJSON = loadObject?.pageJSON?.optionalDictionaryForKey("Header"), let molecule = MVMCoreUIMoleculeMappingObject.shared()?.getMoleculeForJSON(moleculeJSON, delegate: self) else {
|
|
return nil
|
|
}
|
|
return molecule
|
|
}
|
|
|
|
override public func viewForBottom() -> UIView? {
|
|
guard let moleculeJSON = loadObject?.pageJSON?.optionalDictionaryForKey("Footer"), let molecule = MVMCoreUIMoleculeMappingObject.shared()?.getMoleculeForJSON(moleculeJSON, delegate: self) else {
|
|
return nil
|
|
}
|
|
return molecule
|
|
}
|
|
}
|