Box

open class Box<T>

This is just a wrapper as a work around since there is no way to change a passed-in value in a block.

  • The underlying value.

    Declaration

    Swift

    open var value: T
  • Init the Box.

    Declaration

    Swift

    init(_ value: T)

    Parameters

    value

    The variable to be wrapped in.