diff --git a/.swiftpm/xcode/xcshareddata/xcschemes/AppContainer.xcscheme b/.swiftpm/xcode/xcshareddata/xcschemes/AppContainer.xcscheme
new file mode 100644
index 0000000..8cbdb51
--- /dev/null
+++ b/.swiftpm/xcode/xcshareddata/xcschemes/AppContainer.xcscheme
@@ -0,0 +1,66 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/.swiftpm/xcode/xcshareddata/xcschemes/AppContainerUI.xcscheme b/.swiftpm/xcode/xcshareddata/xcschemes/AppContainerUI.xcscheme
new file mode 100644
index 0000000..92e29b9
--- /dev/null
+++ b/.swiftpm/xcode/xcshareddata/xcschemes/AppContainerUI.xcscheme
@@ -0,0 +1,66 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/AppContainer.xcworkspace/xcshareddata/swiftpm/Package.resolved b/AppContainer.xcworkspace/xcshareddata/swiftpm/Package.resolved
index edce6dd..3f3f8a6 100644
--- a/AppContainer.xcworkspace/xcshareddata/swiftpm/Package.resolved
+++ b/AppContainer.xcworkspace/xcshareddata/swiftpm/Package.resolved
@@ -5,8 +5,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/p-x9/EditValueView.git",
"state" : {
- "revision" : "b57b447b148f08f0557981f403f7282b3803399b",
- "version" : "0.0.7"
+ "revision" : "4b28fb2e370f3e18a52e25a0fa5e50dd33fbb7fc",
+ "version" : "0.4.0"
}
},
{
diff --git a/Package.resolved b/Package.resolved
index 66a5189..a2758b4 100644
--- a/Package.resolved
+++ b/Package.resolved
@@ -5,8 +5,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/p-x9/EditValueView.git",
"state" : {
- "revision" : "b57b447b148f08f0557981f403f7282b3803399b",
- "version" : "0.0.7"
+ "revision" : "4b28fb2e370f3e18a52e25a0fa5e50dd33fbb7fc",
+ "version" : "0.4.0"
}
},
{
diff --git a/Package.swift b/Package.swift
index 302e8a9..e9aade3 100644
--- a/Package.swift
+++ b/Package.swift
@@ -18,7 +18,7 @@ let package = Package(
)
],
dependencies: [
- .package(url: "https://github.com/p-x9/EditValueView.git", .upToNextMinor(from: "0.0.7")),
+ .package(url: "https://github.com/p-x9/EditValueView.git", .upToNextMinor(from: "0.4.0")),
.package(url: "https://github.com/p-x9/KeyPathValue.git", .upToNextMinor(from: "0.0.1"))
],
targets: [
diff --git a/Sources/AppContainerUI/ContainerInfoView.swift b/Sources/AppContainerUI/ContainerInfoView.swift
index 850402d..72134b9 100644
--- a/Sources/AppContainerUI/ContainerInfoView.swift
+++ b/Sources/AppContainerUI/ContainerInfoView.swift
@@ -44,7 +44,7 @@ public struct ContainerInfoView: View {
Section(header: Text("Informations")) {
WritableKeyValueRowView(key: "Name", value: container.name, isEditable: isEditable) {
EditValueView(container, key: "name", keyPath: \.name)
- .onUpdate {_, value in
+ .onUpdate { value in
save(keyPath: \.name, value: value)
}
}
@@ -54,7 +54,7 @@ public struct ContainerInfoView: View {
WritableKeyValueRowView(key: "Description", value: container.description, isEditable: isEditable) {
EditValueView(container, key: "description", keyPath: \.description)
- .onUpdate {_, value in
+ .onUpdate { value in
save(keyPath: \.description, value: value)
}
}
@@ -63,14 +63,14 @@ public struct ContainerInfoView: View {
WritableKeyValueRowView(key: "Last Activated Date", value: container.lastActivatedDate, isEditable: isEditable) {
EditValueView(container, key: "lastActivatedDate", keyPath: \.lastActivatedDate)
- .onUpdate { _, value in
+ .onUpdate { value in
save(keyPath: \.lastActivatedDate, value: value)
}
}
WritableKeyValueRowView(key: "Activated Count", value: container.activatedCount, isEditable: isEditable) {
EditValueView(container, key: "activatedCount", keyPath: \.activatedCount)
- .onUpdate {_, value in
+ .onUpdate { value in
save(keyPath: \.activatedCount, value: value)
}
}