23 lines
627 B
Swift
23 lines
627 B
Swift
//
|
|
// StackModel.swift
|
|
// MVMCoreUI
|
|
//
|
|
// Created by Scott Pfeil on 1/16/20.
|
|
// Copyright © 2020 Verizon Wireless. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
@objcMembers public class StackModel: StackModelProtocol, MoleculeProtocol {
|
|
public static var identifier: String = "simpleStack"
|
|
public var backgroundColor: Color?
|
|
public var molecules: [StackItemModel]
|
|
@Axis public var axis: NSLayoutConstraint.Axis = .vertical
|
|
public var spacing: CGFloat = 16.0
|
|
public var useStackSpacingBeforeFirstItem = false
|
|
|
|
public init(molecules: [StackItemModel]) {
|
|
self.molecules = molecules
|
|
}
|
|
}
|