ValidatedValue

@propertyWrapper
public class ValidatedValue<Value>
extension ValidatedValue: JSONMappedValue

ValidatedValue属性包装器注解,默认为手工指定或初始值

使用示例: @ValidatedValue(.isEmail) var email: String = “”

MappedValue

  • Undocumented

    Declaration

    Swift

    public func mappingKeys() -> [String]?
  • Undocumented

    Declaration

    Swift

    public func mappingValue() -> Any
  • Undocumented

    Declaration

    Swift

    public func mappingValue(_ value: Any)