SmartIgnored

@propertyWrapper
public struct SmartIgnored<T> : PropertyWrapperable
extension SmartIgnored: Codable

Undocumented

  • The underlying value being wrapped

    Declaration

    Swift

    public var wrappedValue: T
  • Undocumented

    Declaration

    Swift

    public init(wrappedValue: T)
  • Declaration

    Swift

    public func wrappedValueDidFinishMapping() -> SmartIgnored<T>?
  • Creates an instance from any value if possible

    Declaration

    Swift

    public static func createInstance(with value: Any) -> SmartIgnored?
  • Initializes an SmartIgnored with a wrapped value and encoding control

    Declaration

    Swift

    public init(wrappedValue: T, isEncodable: Bool = false)

    Parameters

    wrappedValue

    The initial/default value

    isEncodable

    Whether the property should be included in encoding (default: false)

PropertyWrapper

  • Declaration

    Swift

    public init(from decoder: Decoder) throws
  • The resolution triggered by the other three parties may be resolved here.

    Declaration

    Swift

    public func encode(to encoder: Encoder) throws