-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Store input and output parameters in CodableFunction
- Loading branch information
1 parent
a61807f
commit 570ced7
Showing
11 changed files
with
239 additions
and
64 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
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
26 changes: 26 additions & 0 deletions
26
Tests/ActionKitTests/TestApp/TestApp/CodableFunction.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,26 @@ | ||
// | ||
// CodableFunction.swift | ||
// ActionKit | ||
// | ||
// Created by david-swift on 25.02.23. | ||
// | ||
|
||
import ActionKit | ||
import ColibriComponents | ||
import Foundation | ||
|
||
extension CodableFunction: ActionRepresentable { | ||
|
||
/// An example action representation for the codable function. | ||
/// - Parameters: | ||
/// - oldValue: The value without the change. | ||
/// - newValue: The value with the change. | ||
/// - Returns: The action representation. | ||
public static func actionRepresentation( | ||
oldValue: CodableFunction<Information>, | ||
newValue: CodableFunction<Information> | ||
) -> LocalizedStringResource { | ||
.init("Editing Function", comment: "CodableFunction (Action Representation Example)") | ||
} | ||
|
||
} |
Oops, something went wrong.