Skip to content

Commit

Permalink
0.24.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dankinsoid committed Mar 13, 2024
1 parent e99a668 commit 99d4eb0
Show file tree
Hide file tree
Showing 46 changed files with 942 additions and 801 deletions.
6 changes: 6 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# These are supported funding model platforms

github: dankinsoid
open_collective: voidilov-daniil
ko_fi: dankinsoid
custom: ["https://paypal.me/voidilovuae"]
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ struct SpeechClient {

extension SpeechClient {

static var previewValue: Self {
static let previewValue: Self = {
let isRecording = ActorIsolated(false)

return Self(
Expand Down Expand Up @@ -63,7 +63,7 @@ extension SpeechClient {
}
}
)
}
}()
}

final actor ActorIsolated<T> {
Expand All @@ -81,14 +81,10 @@ final actor ActorIsolated<T> {

extension StoreDIValues {

var speechClient: SpeechClient {
get {
self[\.speechClient] ?? valueFor(
live: .liveValue,
test: SpeechClient(),
preview: .previewValue
)
}
set { self[\.speechClient] = newValue }
}
@StoreDIValue
var speechClient: SpeechClient = valueFor(
live: .liveValue,
test: SpeechClient(),
preview: .previewValue
)
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Speech

extension SpeechClient {

static var liveValue: Self {
static let liveValue: Self = {
let speech = Speech()
return Self(
finishTask: {
Expand All @@ -20,7 +20,7 @@ extension SpeechClient {
await speech.startTask(request: request)
}
)
}
}()
}

private actor Speech {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ struct SpeechRecognitionView: View {
.padding()
.animation(.linear, value: state.transcribedText)
.alert(
"Error",
state.alert ?? "",
isPresented: Binding {
state.alert != nil
} set: { newValue in
Expand All @@ -129,7 +129,9 @@ struct SpeechRecognitionView: View {
}
}
) {
Text(state.alert ?? "")
Button("OK") {
state.alert = nil
}
}
}
}
Expand Down
51 changes: 17 additions & 34 deletions Examples/SyncUps/SyncUps.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
objects = {

/* Begin PBXBuildFile section */
CA14FF052B361C7400104A70 /* SwiftUINavigation in Frameworks */ = {isa = PBXBuildFile; productRef = CA14FF042B361C7400104A70 /* SwiftUINavigation */; };
831768012BA07E2F00F199F0 /* VDStore in Frameworks */ = {isa = PBXBuildFile; productRef = 831768002BA07E2F00F199F0 /* VDStore */; };
8317680B2BA09AC600F199F0 /* VDFlow in Frameworks */ = {isa = PBXBuildFile; productRef = 8317680A2BA09AC600F199F0 /* VDFlow */; };
DC7CE4E729E9E6E4006B6263 /* ding.wav in Resources */ = {isa = PBXBuildFile; fileRef = DC7CE4E629E9E6E4006B6263 /* ding.wav */; };
DC808D7329E9C3AC0072B4A9 /* App.swift in Sources */ = {isa = PBXBuildFile; fileRef = DC808D7229E9C3AC0072B4A9 /* App.swift */; };
DC808D7729E9C3AD0072B4A9 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = DC808D7629E9C3AD0072B4A9 /* Assets.xcassets */; };
DC808D8429E9C3AD0072B4A9 /* SyncUpFormTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = DC808D8329E9C3AD0072B4A9 /* SyncUpFormTests.swift */; };
DC808D8E29E9C3AD0072B4A9 /* SyncUpsUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = DC808D8D29E9C3AD0072B4A9 /* SyncUpsUITests.swift */; };
DC808DA029E9C4340072B4A9 /* DataManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = DC808D9F29E9C4340072B4A9 /* DataManager.swift */; };
DC808DA329E9C4490072B4A9 /* ComposableArchitecture in Frameworks */ = {isa = PBXBuildFile; productRef = DC808DA229E9C4490072B4A9 /* ComposableArchitecture */; };
DC808DA529E9C4C70072B4A9 /* OpenSettings.swift in Sources */ = {isa = PBXBuildFile; fileRef = DC808DA429E9C4C70072B4A9 /* OpenSettings.swift */; };
DC808DA729E9C4D60072B4A9 /* SpeechRecognizer.swift in Sources */ = {isa = PBXBuildFile; fileRef = DC808DA629E9C4D60072B4A9 /* SpeechRecognizer.swift */; };
DC808DA929E9C5090072B4A9 /* SyncUpForm.swift in Sources */ = {isa = PBXBuildFile; fileRef = DC808DA829E9C5090072B4A9 /* SyncUpForm.swift */; };
Expand All @@ -23,7 +23,6 @@
DC808DAF29E9C53E0072B4A9 /* RecordMeeting.swift in Sources */ = {isa = PBXBuildFile; fileRef = DC808DAE29E9C53E0072B4A9 /* RecordMeeting.swift */; };
DC808DB129E9C54A0072B4A9 /* SyncUpDetail.swift in Sources */ = {isa = PBXBuildFile; fileRef = DC808DB029E9C54A0072B4A9 /* SyncUpDetail.swift */; };
DC808DB329E9C5540072B4A9 /* SyncUpsList.swift in Sources */ = {isa = PBXBuildFile; fileRef = DC808DB229E9C5540072B4A9 /* SyncUpsList.swift */; };
DC808DB629E9C58F0072B4A9 /* Tagged in Frameworks */ = {isa = PBXBuildFile; productRef = DC808DB529E9C58F0072B4A9 /* Tagged */; };
DC80B1E929EDE5D1001CC0CC /* AppFeature.swift in Sources */ = {isa = PBXBuildFile; fileRef = DC80B1E829EDE5D1001CC0CC /* AppFeature.swift */; };
DC80B1EB29EE12A7001CC0CC /* AppFeatureTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = DC80B1EA29EE12A7001CC0CC /* AppFeatureTests.swift */; };
DC8C2B0C29EB084900C65286 /* RecordMeetingTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = DC8C2B0B29EB084900C65286 /* RecordMeetingTests.swift */; };
Expand Down Expand Up @@ -58,7 +57,7 @@
DC808D8329E9C3AD0072B4A9 /* SyncUpFormTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SyncUpFormTests.swift; sourceTree = "<group>"; };
DC808D8929E9C3AD0072B4A9 /* SyncUpsUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = SyncUpsUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
DC808D8D29E9C3AD0072B4A9 /* SyncUpsUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SyncUpsUITests.swift; sourceTree = "<group>"; };
DC808D9C29E9C3C10072B4A9 /* swift-composable-architecture */ = {isa = PBXFileReference; lastKnownFileType = wrapper; name = "swift-composable-architecture"; path = ../..; sourceTree = "<group>"; };
DC808D9C29E9C3C10072B4A9 /* VDStore */ = {isa = PBXFileReference; lastKnownFileType = wrapper; name = VDStore; path = ../..; sourceTree = "<group>"; };
DC808D9F29E9C4340072B4A9 /* DataManager.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DataManager.swift; sourceTree = "<group>"; };
DC808DA429E9C4C70072B4A9 /* OpenSettings.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OpenSettings.swift; sourceTree = "<group>"; };
DC808DA629E9C4D60072B4A9 /* SpeechRecognizer.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SpeechRecognizer.swift; sourceTree = "<group>"; };
Expand All @@ -80,9 +79,8 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
DC808DB629E9C58F0072B4A9 /* Tagged in Frameworks */,
DC808DA329E9C4490072B4A9 /* ComposableArchitecture in Frameworks */,
CA14FF052B361C7400104A70 /* SwiftUINavigation in Frameworks */,
8317680B2BA09AC600F199F0 /* VDFlow in Frameworks */,
831768012BA07E2F00F199F0 /* VDStore in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -114,7 +112,7 @@
DC808D6629E9C3AC0072B4A9 = {
isa = PBXGroup;
children = (
DC808D9C29E9C3C10072B4A9 /* swift-composable-architecture */,
DC808D9C29E9C3C10072B4A9 /* VDStore */,
DC43064F2AE8CF7C005AFB1E /* SyncUps.xctestplan */,
DC808DA129E9C4490072B4A9 /* Frameworks */,
DC808D7029E9C3AC0072B4A9 /* Products */,
Expand Down Expand Up @@ -206,9 +204,8 @@
);
name = SyncUps;
packageProductDependencies = (
DC808DA229E9C4490072B4A9 /* ComposableArchitecture */,
DC808DB529E9C58F0072B4A9 /* Tagged */,
CA14FF042B361C7400104A70 /* SwiftUINavigation */,
831768002BA07E2F00F199F0 /* VDStore */,
8317680A2BA09AC600F199F0 /* VDFlow */,
);
productName = SyncUps;
productReference = DC808D6F29E9C3AC0072B4A9 /* SyncUps.app */;
Expand Down Expand Up @@ -283,8 +280,7 @@
);
mainGroup = DC808D6629E9C3AC0072B4A9;
packageReferences = (
DC808DB429E9C58F0072B4A9 /* XCRemoteSwiftPackageReference "swift-tagged" */,
CA14FF032B361C7400104A70 /* XCRemoteSwiftPackageReference "swiftui-navigation" */,
831768092BA09AC600F199F0 /* XCRemoteSwiftPackageReference "VDFlow" */,
);
productRefGroup = DC808D7029E9C3AC0072B4A9 /* Products */;
projectDirPath = "";
Expand Down Expand Up @@ -668,38 +664,25 @@
/* End XCConfigurationList section */

/* Begin XCRemoteSwiftPackageReference section */
CA14FF032B361C7400104A70 /* XCRemoteSwiftPackageReference "swiftui-navigation" */ = {
831768092BA09AC600F199F0 /* XCRemoteSwiftPackageReference "VDFlow" */ = {
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/pointfreeco/swiftui-navigation.git";
repositoryURL = "https://github.com/dankinsoid/VDFlow";
requirement = {
kind = upToNextMajorVersion;
minimumVersion = 1.2.0;
};
};
DC808DB429E9C58F0072B4A9 /* XCRemoteSwiftPackageReference "swift-tagged" */ = {
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/pointfreeco/swift-tagged.git";
requirement = {
kind = upToNextMajorVersion;
minimumVersion = 0.10.0;
minimumVersion = 4.6.0;
};
};
/* End XCRemoteSwiftPackageReference section */

/* Begin XCSwiftPackageProductDependency section */
CA14FF042B361C7400104A70 /* SwiftUINavigation */ = {
isa = XCSwiftPackageProductDependency;
package = CA14FF032B361C7400104A70 /* XCRemoteSwiftPackageReference "swiftui-navigation" */;
productName = SwiftUINavigation;
};
DC808DA229E9C4490072B4A9 /* ComposableArchitecture */ = {
831768002BA07E2F00F199F0 /* VDStore */ = {
isa = XCSwiftPackageProductDependency;
productName = ComposableArchitecture;
productName = VDStore;
};
DC808DB529E9C58F0072B4A9 /* Tagged */ = {
8317680A2BA09AC600F199F0 /* VDFlow */ = {
isa = XCSwiftPackageProductDependency;
package = DC808DB429E9C58F0072B4A9 /* XCRemoteSwiftPackageReference "swift-tagged" */;
productName = Tagged;
package = 831768092BA09AC600F199F0 /* XCRemoteSwiftPackageReference "VDFlow" */;
productName = VDFlow;
};
/* End XCSwiftPackageProductDependency section */
};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,174 +1,21 @@
{
"pins" : [
{
"identity" : "combine-schedulers",
"kind" : "remoteSourceControl",
"location" : "https://github.com/pointfreeco/combine-schedulers",
"state" : {
"revision" : "9dc9cbe4bc45c65164fa653a563d8d8db61b09bb",
"version" : "1.0.0"
}
},
{
"identity" : "swift-argument-parser",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-argument-parser",
"state" : {
"revision" : "c8ed701b513cf5177118a175d85fbbbcd707ab41",
"version" : "1.3.0"
}
},
{
"identity" : "swift-benchmark",
"kind" : "remoteSourceControl",
"location" : "https://github.com/google/swift-benchmark",
"state" : {
"revision" : "8163295f6fe82356b0bcf8e1ab991645de17d096",
"version" : "0.1.2"
}
},
{
"identity" : "swift-case-paths",
"kind" : "remoteSourceControl",
"location" : "https://github.com/pointfreeco/swift-case-paths",
"state" : {
"revision" : "e593aba2c6222daad7c4f2732a431eed2c09bb07",
"version" : "1.3.0"
}
},
{
"identity" : "swift-clocks",
"kind" : "remoteSourceControl",
"location" : "https://github.com/pointfreeco/swift-clocks",
"state" : {
"revision" : "a8421d68068d8f45fbceb418fbf22c5dad4afd33",
"version" : "1.0.2"
}
},
{
"identity" : "swift-collections",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-collections",
"state" : {
"revision" : "94cf62b3ba8d4bed62680a282d4c25f9c63c2efb",
"version" : "1.1.0"
}
},
{
"identity" : "swift-concurrency-extras",
"kind" : "remoteSourceControl",
"location" : "https://github.com/pointfreeco/swift-concurrency-extras",
"state" : {
"revision" : "bb5059bde9022d69ac516803f4f227d8ac967f71",
"version" : "1.1.0"
}
},
{
"identity" : "swift-custom-dump",
"kind" : "remoteSourceControl",
"location" : "https://github.com/pointfreeco/swift-custom-dump",
"state" : {
"revision" : "3ce83179e5f0c83ad54c305779c6b438e82aaf1d",
"version" : "1.2.1"
}
},
{
"identity" : "swift-dependencies",
"kind" : "remoteSourceControl",
"location" : "https://github.com/pointfreeco/swift-dependencies",
"state" : {
"revision" : "d3a5af3038a09add4d7682f66555d6212058a3c0",
"version" : "1.2.2"
}
},
{
"identity" : "swift-docc-plugin",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-docc-plugin",
"state" : {
"revision" : "26ac5758409154cc448d7ab82389c520fa8a8247",
"version" : "1.3.0"
}
},
{
"identity" : "swift-docc-symbolkit",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-docc-symbolkit",
"state" : {
"revision" : "b45d1f2ed151d057b54504d653e0da5552844e34",
"version" : "1.0.0"
}
},
{
"identity" : "swift-identified-collections",
"kind" : "remoteSourceControl",
"location" : "https://github.com/pointfreeco/swift-identified-collections",
"state" : {
"revision" : "d1e45f3e1eee2c9193f5369fa9d70a6ddad635e8",
"version" : "1.0.0"
}
},
{
"identity" : "swift-macro-testing",
"kind" : "remoteSourceControl",
"location" : "https://github.com/pointfreeco/swift-macro-testing",
"state" : {
"revision" : "90e38eec4bf661ec0da1bbfd3ec507d0f0c05310",
"version" : "0.3.0"
}
},
{
"identity" : "swift-perception",
"kind" : "remoteSourceControl",
"location" : "https://github.com/pointfreeco/swift-perception",
"state" : {
"revision" : "a5bb578d963fcdbffe4fd56c92b2e222f5b02c8a",
"version" : "1.1.2"
}
},
{
"identity" : "swift-snapshot-testing",
"kind" : "remoteSourceControl",
"location" : "https://github.com/pointfreeco/swift-snapshot-testing",
"state" : {
"revision" : "5b0c434778f2c1a4c9b5ebdb8682b28e84dd69bd",
"version" : "1.15.4"
}
},
{
"identity" : "swift-syntax",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-syntax",
"state" : {
"revision" : "fa8f95c2d536d6620cc2f504ebe8a6167c9fc2dd",
"version" : "510.0.1"
}
},
{
"identity" : "swift-tagged",
"kind" : "remoteSourceControl",
"location" : "https://github.com/pointfreeco/swift-tagged.git",
"state" : {
"revision" : "3907a9438f5b57d317001dc99f3f11b46882272b",
"version" : "0.10.0"
}
},
{
"identity" : "swiftui-navigation",
"kind" : "remoteSourceControl",
"location" : "https://github.com/pointfreeco/swiftui-navigation.git",
"state" : {
"revision" : "d9e72f3083c08375794afa216fb2f89c0114f303",
"version" : "1.2.1"
"revision" : "64889f0c732f210a935a0ad7cda38f77f876262d",
"version" : "509.1.1"
}
},
{
"identity" : "xctest-dynamic-overlay",
"identity" : "vdflow",
"kind" : "remoteSourceControl",
"location" : "https://github.com/pointfreeco/xctest-dynamic-overlay",
"location" : "https://github.com/dankinsoid/VDFlow",
"state" : {
"revision" : "b13b1d1a8e787a5ffc71ac19dcaf52183ab27ba2",
"version" : "1.1.1"
"revision" : "243bae56ccb137e48d94034fa995ae7f42e8e095",
"version" : "4.6.0"
}
}
],
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Bucket
uuid = "1A44B330-A5D5-43E6-A2D2-BEB3B85420D6"
type = "1"
version = "2.0">
</Bucket>
Loading

0 comments on commit 99d4eb0

Please sign in to comment.