Skip to content

Commit

Permalink
Merge pull request #44 from p-x9/feature/bump-editvalueview-0.4.0
Browse files Browse the repository at this point in the history
bump `EditValueView` to 0.4.0
  • Loading branch information
p-x9 authored Jul 31, 2023
2 parents b9ce8b6 + b5a90f2 commit d951537
Show file tree
Hide file tree
Showing 6 changed files with 141 additions and 9 deletions.
66 changes: 66 additions & 0 deletions .swiftpm/xcode/xcshareddata/xcschemes/AppContainer.xcscheme
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1430"
version = "1.7">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "AppContainer"
BuildableName = "AppContainer"
BlueprintName = "AppContainer"
ReferencedContainer = "container:">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
shouldAutocreateTestPlan = "YES">
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "AppContainer"
BuildableName = "AppContainer"
BlueprintName = "AppContainer"
ReferencedContainer = "container:">
</BuildableReference>
</MacroExpansion>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
66 changes: 66 additions & 0 deletions .swiftpm/xcode/xcshareddata/xcschemes/AppContainerUI.xcscheme
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1430"
version = "1.7">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "AppContainerUI"
BuildableName = "AppContainerUI"
BlueprintName = "AppContainerUI"
ReferencedContainer = "container:">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
shouldAutocreateTestPlan = "YES">
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "AppContainerUI"
BuildableName = "AppContainerUI"
BlueprintName = "AppContainerUI"
ReferencedContainer = "container:">
</BuildableReference>
</MacroExpansion>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
},
{
Expand Down
4 changes: 2 additions & 2 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
},
{
Expand Down
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
Expand Down
8 changes: 4 additions & 4 deletions Sources/AppContainerUI/ContainerInfoView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
Expand All @@ -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)
}
}
Expand All @@ -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)
}
}
Expand Down

0 comments on commit d951537

Please sign in to comment.