Commit Graph

329 Commits

Author SHA1 Message Date
mbrandonw
c63f323953 Run swift-format 2022-09-05 20:56:55 +00:00
TAKUYA ENDO
e40b0f34f2 change AVAudioSession category (#1334) 2022-09-05 16:47:56 -04:00
mbrandonw
9406f4d820 Run swift-format 2022-08-31 18:43:44 +00:00
Pedro Rojas
83780f6744 Remove closure and pass UUID.incrementing as parameter on AppEnvironment (#1322)
* Remove closure and pass UUID.incrementing as parameter on AppEnvironment

* Fix swift 5.6

Co-authored-by: Brandon Williams <mbrandonw@hey.com>
2022-08-31 14:28:45 -04:00
mbrandonw
3bca5180f3 Run swift-format 2022-08-31 00:09:57 +00:00
Brandon Williams
7b5bc85f2e Update Effect internals to be more efficient. (#1312)
* Distinguish Combine and async effects from each other

* wip

* wip

* wip

* Add some tests

* wip

* wip

* wip

Co-authored-by: Stephen Celis <stephen@stephencelis.com>
2022-08-30 19:40:50 -04:00
유재호
baaa8a6195 Fix minor typos in README (#1299) 2022-08-27 14:20:15 -04:00
Brandon Williams
a518935116 Update combine-schedulers and fix implicit Foundation imports. (#1294)
* Update combine-schedulers and fix implicit Foundation imports.

* a few more fixes
2022-08-25 11:58:49 -04:00
Stephen Celis
799aa18f86 Cleanup: Global/Local -> Parent/Child (#1269)
* Make openSettings async.

* global/local -> parent/child

* error cleanup

* Clean up action scoping

* cleanup

* wip

Co-authored-by: Brandon Williams <mbrandonw@hey.com>
2022-08-16 12:25:31 -04:00
유재호
6915844f76 Add final keyword to every test class by default (#1267) 2022-08-15 14:37:30 -04:00
Brandon Williams
3b96255304 Update voice memo test dependencies directly on store. (#1261) 2022-08-12 11:00:24 -04:00
mbrandonw
d827c049c4 Run swift-format 2022-08-11 19:34:59 +00:00
Brandon Williams
008af25c2a Update VoiceMemos.swift 2022-08-11 15:16:45 -04:00
Brandon Williams
29d7b9ceb7 Voice memos dependency previews (#1259)
* Improve the mock dependencies for voice memos preview.

* wip
2022-08-11 15:12:46 -04:00
Brandon Williams
253776d21a Rename audioPlayerClient to audioPlayer. 2022-08-10 13:48:46 -04:00
Brandon Williams
6f52a5bd40 Remove unneeded await. 2022-08-10 12:01:30 -04:00
mbrandonw
18d160ccb3 Run swift-format 2022-08-09 21:33:27 +00:00
Brandon Williams
407844787c Voice memo record feature (#1256)
* Refactor voice memos to have a recording domain.

* alert

* fixes

* wip

* fix tests

* clean up

* revert sendable stuff for now

Co-authored-by: Stephen Celis <stephen@stephencelis.com>
2022-08-09 17:24:23 -04:00
Stephen Celis
0f3175f968 Clean up Todos sort debouncing (#1255) 2022-08-09 15:29:10 -04:00
Stephen Celis
70e13dc4b7 Todo/VoiceMemo -> TodoState/VoiceMemoState (#1251) 2022-08-08 15:27:10 -04:00
Brandon Williams
207a2abe35 Move debouncing logic to view. (#1250) 2022-08-08 12:59:42 -04:00
stephencelis
bf6a0bdaf7 Run swift-format 2022-08-08 05:17:33 +00:00
Brandon Williams
108e3a536f Concurrency Beta (#1189)
* more main actor audit

* wip

* wip

* fix

* better task result ==

* task result tests

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* fix merge conflicts

* wip

* wip

* lots of doc fixes and modernizations

* lots more docs and better hashable conformance for TaskResult

* more docs

* clean up

* more tests and docs

* clean up

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* small clean up

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* explicit

* wip

* fix bug in TestStore.receive

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* fixes

* wip

* tools for non-deterministic TestStore.receive

* fix

* wip

* wip

* remove inAnyOrder stuff

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* convert download case study to use async/await

* animations

* fix tests

* remove executor experiment

* wip

* wip

* wip

* wip

* wip

* speech simplification

* wip

* wip

* wip

* wip

* wip

* wip

* add a few todos

* wrote some tests

* simplify speech recognizer

* fix tests

* update some docs about error throwing behavior

* wip

* wip

* fix

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* Swift 5.5.2 fixes

* wip

* Bump timeout

* wip

* wip

* Finesse

* proper way to detect main queue

* extra guard

* revert main queue check

* move stuff around

* docs

* fixed a bunch of warnings

* Fix references

* clean up

* clean up

* fix a bunch of warnings

* clean up

* un-soft deprecate concatenate

* async teststore.send

* fix uikit tests

* drop sendable

* wip

* wip

* wip

* wip

* wip

* clean up

* clean up

* reorganize, remove extra task cancellation handler

* wip

* wip

* wip

* wip

* wip

* wip

* Make TestStore.send async (#1190)

* async teststore.send

* fix uikit tests

* Converted all tests to async

* clean up

* added docs

* Update Sources/ComposableArchitecture/TestStore.swift

Co-authored-by: Stephen Celis <stephen@stephencelis.com>

* Update Sources/ComposableArchitecture/TestStore.swift

Co-authored-by: Stephen Celis <stephen@stephencelis.com>

* docs and readme update

* Update README.md

* Update Tests/ComposableArchitectureTests/StoreTests.swift

Co-authored-by: Stephen Celis <stephen@stephencelis.com>

* fix

* Update Sources/ComposableArchitecture/TestStore.swift

Co-authored-by: Stephen Celis <stephen@stephencelis.com>

* Update Sources/ComposableArchitecture/TestStore.swift

Co-authored-by: Stephen Celis <stephen@stephencelis.com>

* Update Sources/ComposableArchitecture/TestStore.swift

Co-authored-by: Stephen Celis <stephen@stephencelis.com>

* clean up

Co-authored-by: Stephen Celis <stephen@stephencelis.com>

* wip

* wip

* wip

* make fetchNumber throwing and fix tests

* effect basics clean up

* use local state for isLoading in refreshable case study

* clean up

* fix test

* wip

* wip

* wip

* wip

* wip

* wip

* fixes

* clean up

* clean up

* Simplify

* wip

* clean up

* wip

* AsyncStream.finished()

* give Send a public initializer

* make send public

* temporarily make box public

* remove concurrency flag

* wip

* wip

* wip

* wip

* wip

* docs

* speech

* simplify

* clean up;

* unchecked sendable

* clean up

* clean up

* wip

* docs

* docs

* more docs

* lots of docs

* wip

* wip

* wip

* more docs for streamWithContinuation

* wip

* wip

* wip

* Make internal, too

* wip

* Remove sendability detection

It breaks things, like:

    let request = UncheckedSendable(
      SKProductsRequest(productIdentifiers: []
    )
    // UncheckedSendable<NSObject> // *not* _<SKProductsRequest>

* wip

* doc clean up;

* fixed some todos

* docs

* wip

* remove thread safety FAQ from readme

* fix test

* wip

* docs clean up

* docs clean up

* added a testing article and fixed some docs

* rearrange

* docs clean up

* wip

* Update Sources/ComposableArchitecture/Documentation.docc/Articles/Testing.md

Co-authored-by: Thomas Grapperon <35562418+tgrapperon@users.noreply.github.com>

* Update Sources/ComposableArchitecture/Effects/ConcurrencySupport.swift

Co-authored-by: Thomas Grapperon <35562418+tgrapperon@users.noreply.github.com>

* Update Sources/ComposableArchitecture/Effects/ConcurrencySupport.swift

Co-authored-by: Thomas Grapperon <35562418+tgrapperon@users.noreply.github.com>

* Update Sources/ComposableArchitecture/Effects/ConcurrencySupport.swift

Co-authored-by: Thomas Grapperon <35562418+tgrapperon@users.noreply.github.com>

* Update Sources/ComposableArchitecture/Effects/ConcurrencySupport.swift

Co-authored-by: Thomas Grapperon <35562418+tgrapperon@users.noreply.github.com>

* Update Sources/ComposableArchitecture/Documentation.docc/Articles/Testing.md

Co-authored-by: Thomas Grapperon <35562418+tgrapperon@users.noreply.github.com>

* Update Sources/ComposableArchitecture/Documentation.docc/Articles/Testing.md

Co-authored-by: Thomas Grapperon <35562418+tgrapperon@users.noreply.github.com>

* Update Sources/ComposableArchitecture/Documentation.docc/Articles/Testing.md

Co-authored-by: Thomas Grapperon <35562418+tgrapperon@users.noreply.github.com>

* Update Sources/ComposableArchitecture/Documentation.docc/Articles/Testing.md

Co-authored-by: Thomas Grapperon <35562418+tgrapperon@users.noreply.github.com>

* Update Sources/ComposableArchitecture/Documentation.docc/Articles/Testing.md

Co-authored-by: Thomas Grapperon <35562418+tgrapperon@users.noreply.github.com>

* Update Sources/ComposableArchitecture/Documentation.docc/Articles/Testing.md

Co-authored-by: Thomas Grapperon <35562418+tgrapperon@users.noreply.github.com>

* Update Sources/ComposableArchitecture/Documentation.docc/Articles/Testing.md

Co-authored-by: Thomas Grapperon <35562418+tgrapperon@users.noreply.github.com>

* wip

* wip

* wip

Co-authored-by: Stephen Celis <stephen@stephencelis.com>
Co-authored-by: Thomas Grapperon <35562418+tgrapperon@users.noreply.github.com>
2022-08-08 01:04:16 -04:00
유재호
3f5f3c850f Rename enum Action cases to be consistent (#1240)
* Rename enum Action cases to be consistent

- dissmiss(something)Alert -> (something)AlertDismissed
- rename enum for cancellable id

* Update Examples/CaseStudies/SwiftUICaseStudies/01-GettingStarted-Animations.swift

* Update Examples/CaseStudies/SwiftUICaseStudies/01-GettingStarted-Animations.swift

* Update Examples/CaseStudies/SwiftUICaseStudies/01-GettingStarted-Animations.swift

* Re-alphabetize alertDismissed case

Co-authored-by: Stephen Celis <stephen.celis@gmail.com>
2022-08-05 13:08:53 -04:00
Brandon Williams
f1e6872be9 Simplify speech demo (#1218)
* Simplify speech demo

* wip

* fix flakey test

* increase timeout

* wip
2022-07-19 10:32:31 -04:00
mbrandonw
7d61d5c71a Run swift-format 2022-07-18 15:36:01 +00:00
Brandon Williams
9951aaa79a More clean up in speech demo (#1217)
* Status is unusued

* clean up

* wip
2022-07-18 11:26:12 -04:00
mbrandonw
488fdc2d59 Run swift-format 2022-07-15 21:05:09 +00:00
Brandon Williams
9877374fea Rename recognitionTask to startTask. 2022-07-15 15:41:26 -05:00
Brandon Williams
14b57f1c04 Remove unused class. 2022-07-15 15:22:58 -05:00
Brandon Williams
ed36a96c79 Remove unused action type. 2022-07-15 14:10:36 -05:00
Brandon Williams
b070365fe8 Clean up use of inputNode. 2022-07-15 14:04:18 -05:00
mbrandonw
d7b5205489 Run swift-format 2022-07-15 18:52:58 +00:00
Brandon Williams
1117149e79 Clean up some things from the Speech demo. (#1214) 2022-07-15 13:43:02 -05:00
mbrandonw
c59ba46024 Run swift-format 2022-07-15 18:38:03 +00:00
Brandon Williams
de38befc0c Use a 'lorem' speech client in previews. (#1211)
* Use a 'lorem' speech client in previews.

* fix

* wip
2022-07-15 13:22:09 -05:00
mbrandonw
0a38f2c860 Run swift-format 2022-07-13 14:17:27 +00:00
Thomas Grapperon
b979b442da Modernize SwiftUI Case Studies (#1208)
* Replace `.navigationBarTitle` by `.navigationTitle`

* Remove .background from Animation

* Update 01-GettingStarted-Bindings-Basics.swift

* Update 01-GettingStarted-Bindings-Forms.swift

* Update 01-GettingStarted-Composition-TwoCounters.swift

* Update 01-GettingStarted-Counter.swift

* Update 01-GettingStarted-FocusState.swift

* Update 01-GettingStarted-OptionalState.swift

* Update 01-GettingStarted-SharedState.swift

* Update 02-Effects-Basics.swift

* Update 02-Effects-Cancellation.swift

* Update 02-Effects-LongLiving.swift

* Update 02-Effects-Refreshable.swift

* Update 02-Effects-Timers.swift

* Update 02-Effects-WebSocket.swift

* Update 02-Effects-SystemEnvironment.swift

* Update 03-Navigation-NavigateAndLoad.swift

* Update 04-HigherOrderReducers-ElmLikeSubscriptions.swift

* Update 04-HigherOrderReducers-Recursion.swift

* Update 04-HigherOrderReducers-ReusableFavoriting.swift

* Update CircularProgressView.swift

* Update DownloadComponent.swift

* Reindent `XCTestDynamicOverlay` block

* Use a dedicated shape for the clock hand

This is a little much simpler I guess.

* Go back to use a Path, much simpler to understand.

* Use more natural modifiers to apply styles

* small updates

* Center the "clocks" horizontally

Co-authored-by: Brandon Williams <mbrandonw@hey.com>
2022-07-13 10:08:09 -04:00
Thomas Grapperon
4444dfc4b3 Set the circle in the center of the view in the animation's study (#1203)
* Set the circle in the center of the view in the animation's study

* Modernize Animation study's layout

* Put the gesture back on the Text only
2022-07-12 11:38:19 -04:00
mbrandonw
5c00a09d10 Run swift-format 2022-07-11 23:33:02 +00:00
Brandon Williams
f8128617eb Small updates to animations case study. (#1201) 2022-07-11 19:24:58 -04:00
유재호(예거)
dd5ced35df [SwiftUI Case Studies] Revise initialState and layout in Animations (#1195)
* Remove some unnecessary 'nil' literals in State structs.

* Revise initialState and layout

- move Circle's initial location to center of the screen for better visibility
- align 'circleColor' property's value with actual color using colorInvert()
- remove top margin to display more text because we cannot apply ScrollView in this case

* Update AnimationTests
2022-07-11 15:11:18 -04:00
Stephen Celis
73c2b2f873 Clean up fact client tests (#1172)
* Clean up fact client tests

* wip
2022-06-29 14:03:30 -04:00
Stephen Celis
d1c1b1abf2 Simplify 2022-06-29 13:17:18 -04:00
Stephen Celis
a8f6f79a68 Collapse case study readmes behind disclosure groups (#1171)
* Collapse case study readmes behind disclosure groups

* wip
2022-06-29 12:04:21 -04:00
Stephen Celis
a35359c4d9 scheduler -> mainQueue 2022-06-28 17:16:37 -04:00
Stephen Celis
de2b645b66 Failing -> Unimplemented (#1168) 2022-06-28 16:28:03 -04:00
Brandon Williams
90d91ffedc Clean up compiler checks. (#1167) 2022-06-28 16:05:50 -04:00
Brandon Williams
5bff200c5d Simplify effects basics case study. (#1166)
* Simplify effects basics case study.

* wip

* Update Examples/CaseStudies/SwiftUICaseStudies/02-Effects-Basics.swift

Co-authored-by: Stephen Celis <stephen@stephencelis.com>

* nb

Co-authored-by: Stephen Celis <stephen@stephencelis.com>
2022-06-28 13:37:59 -04:00
mbrandonw
9a1541aa3a Run swift-format 2022-06-22 17:34:51 +00:00