//
//  StackModel.swift
//  MVMCoreUI
//
//  Created by Scott Pfeil on 1/16/20.
//  Copyright © 2020 Verizon Wireless. All rights reserved.
//

import Foundation

public protocol StackModelProtocol: ParentMoleculeModelProtocol {
    var molecules: [StackItemModelProtocol & MoleculeModelProtocol] { get set }
    var axis: NSLayoutConstraint.Axis { get set }
    var spacing: CGFloat { get set }
    var useStackSpacingBeforeFirstItem: Bool { get set }
}

extension StackModelProtocol {
    
    public var children: [MoleculeModelProtocol] { return molecules }
    
}
