-
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
41ebef4
commit 3d3f886
Showing
65 changed files
with
853 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,3 +50,4 @@ vscode | |
watchOS | ||
www | ||
typealias | ||
enum |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions
5
Sources/MetaCodable/MetaCodable.docc/Tutorials/Enum/Command-01.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
@Codable | ||
enum Command { | ||
case load | ||
case store | ||
} |
Binary file added
BIN
+26.5 KB
Sources/MetaCodable/MetaCodable.docc/Tutorials/Enum/Command-01~dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions
5
Sources/MetaCodable/MetaCodable.docc/Tutorials/Enum/Command-02.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
@Codable | ||
enum Command { | ||
case load(key: String) | ||
case store(key: String, value: Int) | ||
} |
5 changes: 5 additions & 0 deletions
5
Sources/MetaCodable/MetaCodable.docc/Tutorials/Enum/Command-03.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
@Codable | ||
enum Command { | ||
case load(_ key: String) | ||
case store(key: String, value: Int) | ||
} |
6 changes: 6 additions & 0 deletions
6
Sources/MetaCodable/MetaCodable.docc/Tutorials/Enum/Command-04.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
@Codable | ||
enum Command { | ||
@CodedAs("load") | ||
case loads(_ key: String) | ||
case store(key: String, value: Int) | ||
} |
11 changes: 11 additions & 0 deletions
11
Sources/MetaCodable/MetaCodable.docc/Tutorials/Enum/Command-05.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
@Codable | ||
enum Command { | ||
@CodedAs("load") | ||
case loads(_ key: String) | ||
case store(StoredData) | ||
|
||
struct StoredData { | ||
let key: String | ||
let value: Int | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
Sources/MetaCodable/MetaCodable.docc/Tutorials/Enum/Command-06.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
@Codable | ||
enum Command { | ||
@CodedAs("load") | ||
case loads(_ key: String) | ||
case store(StoredData) | ||
@IgnoreCoding | ||
case dumpToDisk | ||
|
||
struct StoredData { | ||
let key: String | ||
let value: Int | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions
16
Sources/MetaCodable/MetaCodable.docc/Tutorials/Enum/Command-07.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
@Codable | ||
enum Command { | ||
@CodedAs("load") | ||
case loads(_ key: String) | ||
case store(StoredData) | ||
case execute(filePath: String) | ||
@CodingKeys(.snake_case) | ||
case send(localData: String) | ||
@IgnoreCoding | ||
case dumpToDisk | ||
|
||
struct StoredData { | ||
let key: String | ||
let value: Int | ||
} | ||
} |
Binary file added
BIN
+57.2 KB
Sources/MetaCodable/MetaCodable.docc/Tutorials/Enum/Command-07~dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions
6
Sources/MetaCodable/MetaCodable.docc/Tutorials/Enum/Command-08.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
@Codable | ||
@CodedAt("type") | ||
enum Command { | ||
case load(key: String) | ||
case store(key: String, value: Int) | ||
} |
Binary file added
BIN
+27.4 KB
Sources/MetaCodable/MetaCodable.docc/Tutorials/Enum/Command-08~dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions
7
Sources/MetaCodable/MetaCodable.docc/Tutorials/Enum/Command-09.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
@Codable | ||
@CodedAt("type") | ||
@CodedAs<Int> | ||
enum Command { | ||
case load(key: String) | ||
case store(key: String, value: Int) | ||
} |
Binary file added
BIN
+24.7 KB
Sources/MetaCodable/MetaCodable.docc/Tutorials/Enum/Command-09~dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions
9
Sources/MetaCodable/MetaCodable.docc/Tutorials/Enum/Command-10.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
@Codable | ||
@CodedAt("type") | ||
@CodedAs<Int> | ||
enum Command { | ||
@CodedAs(0) | ||
case load(key: String) | ||
@CodedAs(1) | ||
case store(key: String, value: Int) | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions
7
Sources/MetaCodable/MetaCodable.docc/Tutorials/Enum/Command-11.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
@Codable | ||
@CodedAt("type") | ||
@ContentAt("content") | ||
enum Command { | ||
case load(key: String) | ||
case store(key: String, value: Int) | ||
} |
Binary file added
BIN
+35.8 KB
Sources/MetaCodable/MetaCodable.docc/Tutorials/Enum/Command-11~dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions
10
Sources/MetaCodable/MetaCodable.docc/Tutorials/Enum/Command-12.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
@Codable | ||
@CodedAt("type") | ||
@ContentAt("content") | ||
enum Command { | ||
case load(key: String) | ||
case store(key: String, value: Int) | ||
case ignore(count: Int = 1) | ||
@IgnoreCodingInitialized | ||
case dumpToDisk(info: Int = 0) | ||
} |
Binary file added
BIN
+60.6 KB
Sources/MetaCodable/MetaCodable.docc/Tutorials/Enum/Command-12~dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.