ContainerElementBase

public class ContainerElementBase : GenericElement

Define a base class to containered tag elements

  • Override container element defaults is true

    Declaration

    Swift

    override var container: Bool { get }
  • This method append a new element in objects list

    Declaration

    Swift

    func add<T>(_ element: T)

    Parameters

    element

    Generic Type ElementProtocol or String

  • This method create a Text element to user when element T String is passed on add method

    Declaration

    Swift

    private func factoryTextWith(_ text: String) -> Text

    Parameters

    text

    String to create Text element

    Return Value

    Text Element with string passed