Skip to content

Commit

Permalink
Update README.md (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
christiancabarrocas authored Oct 18, 2024
1 parent 8a77878 commit bd4e33f
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,22 +86,6 @@ Example:
#### Custom Date - CustomDate(dateFormat: String, defaultValue: Date? = nil)
Allows you to decode Strings into Dates with default values

Example:

@CustomCodable
struct Vehicle {
let wheels: Int
@CustomDate(dateFormat: "YYYYY-mm-dd", defaultValue: Date())
let designed: Date
let maxSpeed: Int
let name: String
}

extension Vehicle: Codable {}

#### Custom Date - CustomDate(dateFormat: String, defaultValue: Date? = nil)
Allows you to decode Strings into Dates with default values

Example:

@CustomCodable
Expand Down Expand Up @@ -164,7 +148,7 @@ will expand to:
}
}

#### Custom URL - CustomDate(dateFormat: String, defaultValue: Date? = nil)
#### Custom URL
Allows you to decode Strings into optional URL

Example:
Expand Down

0 comments on commit bd4e33f

Please sign in to comment.