From bd4e33f07ea0ab0f8393d81610b340afcc744580 Mon Sep 17 00:00:00 2001 From: Christian Cabarrocas Date: Fri, 18 Oct 2024 08:31:44 +0200 Subject: [PATCH] Update README.md (#13) --- README.md | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/README.md b/README.md index 070265f..af78e30 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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: