TypographyElementBase

public class TypographyElementBase : GenericElement

This is a Base class for Typography Elements

  • Override container element for table row elements defaults is true

    Declaration

    Swift

    override var container: Bool { get }
  • Initialization with Generic Type

    Declaration

    Swift

    public init<T>(_ element: T)

    Parameters

    element

    Generic Type ElementProtocol or String

  • This method append a new element in objects list

    Declaration

    Swift

    public 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