Commit Graph

260 Commits

Author SHA1 Message Date
Stephen Celis
af27329232 Bump version in docs (#2336)
* Bump version in docs

* wip
2023-07-31 09:39:57 -07:00
Stephen Celis
195284b94b The Composable Architecture 1.0 (#2318)
* docs

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* Fix invalid states count for 3 optionals and typos (#2094)

* wip

* wip

* more dismisseffect docs

* fixed some references

* navigation doc corrections

* more nav docs

* fix cancellation tests in release mode

* wrap some tests in #if DEBUG since they are testing expected failures

* update UUIDs in tests to use shorter initializer

* fixed a todo

* wip

* fix merge errors

* wip

* fix

* wip

* wip

* fixing a bunch of todos

* get rid of rawvalue in StackElementID

* more todos

* NavLinkStore docs

* fix swift 5.6 stuff

* fix some standups tests

* fix

* clean up

* docs fix

* fixes

* wip

* 5.6 fix

* wip

* wip

* dont parallelize tests

* updated demo readmes

* wip

* Use ObservedObject instead of StateObject for alert/dialog modifiers.

* integration tests for bad dismissal behavior

* check for runtime warnings in every integration test

* wip

* wip

* wip

* fix

* wip

* wip

* wip

* wip

* wip

* wip

* Drop a bunch of Hashables.

* some nav bug fixes

* wip

* wip

* wip

* fix

* fix

* wip

* wip

* Simplify recording test.

* add concurrent async test

* fix

* wip

* Refact how detail dismisses itself.

* fix

* 5.6 fix

* wip

* wip

* wip

* wip

* Add TestStore.assert.

* Revert "Add TestStore.assert."

This reverts commit a892cccc66.

* add Ukrainian Readme.md (#2121)

* Add TestStore.assert. (#2123)

* Add TestStore.assert.

* wip

* Update Sources/ComposableArchitecture/TestStore.swift

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

* Update Sources/ComposableArchitecture/Documentation.docc/Extensions/TestStore.md

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

* fix tests

---------

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

* Run swift-format

* push for store.finish and presentation

* wip

* move docs around

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* Add case subscripts

* wip

* wip

* wip

* 5.7-only

* wip

* wip

* wip

* wip

* fix

* revert store.finish task cancellation

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* add test for presentation scope

* wip

* wip

* wip

* wip

* wip

* cleanup

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* Rename ReducerProtocol.swift to Reducer.swift (#2206)

* Hard-deprecate old SwitchStore initializers/overloads

* wip

* wip

* Resolve CaseStudies crash (#2258)

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* Bump timeout for CI

* wip

* Remove old deprecations

* Simplify test store

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* images for tutorials

* wip

* wip

* Remove deprecated alert APIs

* Bump dependencies

* wip

---------

Co-authored-by: Brandon Williams <mbrandonw@hey.com>
Co-authored-by: 유재호 <y73447jh@gmail.com>
Co-authored-by: Dmytro <barabashdmyto@gmail.com>
Co-authored-by: Brandon Williams <135203+mbrandonw@users.noreply.github.com>
Co-authored-by: mbrandonw <mbrandonw@users.noreply.github.com>
2023-07-30 14:58:40 -07:00
Brandon Williams
cf29ea1b58 Fix compiler error in tutorial. (#2331)
* Fix compiler error in tutorial.

* wip
2023-07-28 19:47:31 -04:00
Stephen Celis
db2a55fd89 Expose StorePublisher directly on Store (#2330)
Now that `ViewStore`s have a limited future, we should surface
functionality that was `ViewStore`-only to the `Store` instead.
2023-07-28 10:01:33 -07:00
Brandon Williams
2c93195c23 Prerelease 1.0 (#1929)
* Converted voice memos back to identified array

* update deps

* update docs for DismissEffect

* wip

* Add Sendable conformance to PresentationState (#2086)

* wip

* swift-format

* wip

* wip

* fix some warnings

* docs

* wip

* wip

* Catch some typos in Articles (#2088)

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* docs

* wip

* wip

* docs

* wip

* wip

* wip

* wip

* docs

* docs

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* Fix invalid states count for 3 optionals and typos (#2094)

* wip

* wip

* more dismisseffect docs

* fixed some references

* navigation doc corrections

* more nav docs

* fix cancellation tests in release mode

* wrap some tests in #if DEBUG since they are testing expected failures

* update UUIDs in tests to use shorter initializer

* fixed a todo

* wip

* fix merge errors

* wip

* fix

* wip

* wip

* fixing a bunch of todos

* get rid of rawvalue in StackElementID

* more todos

* NavLinkStore docs

* fix swift 5.6 stuff

* fix some standups tests

* fix

* clean up

* docs fix

* fixes

* wip

* 5.6 fix

* wip

* wip

* dont parallelize tests

* updated demo readmes

* wip

* Use ObservedObject instead of StateObject for alert/dialog modifiers.

* integration tests for bad dismissal behavior

* check for runtime warnings in every integration test

* wip

* wip

* wip

* fix

* wip

* wip

* wip

* wip

* wip

* wip

* Drop a bunch of Hashables.

* some nav bug fixes

* wip

* wip

* wip

* fix

* fix

* wip

* wip

* Simplify recording test.

* add concurrent async test

* fix

* wip

* Refact how detail dismisses itself.

* fix

* 5.6 fix

* wip

* wip

* wip

* wip

* Add TestStore.assert.

* Revert "Add TestStore.assert."

This reverts commit a892cccc66.

* add Ukrainian Readme.md (#2121)

* Add TestStore.assert. (#2123)

* Add TestStore.assert.

* wip

* Update Sources/ComposableArchitecture/TestStore.swift

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

* Update Sources/ComposableArchitecture/Documentation.docc/Extensions/TestStore.md

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

* fix tests

---------

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

* Run swift-format

* push for store.finish and presentation

* wip

* move docs around

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* Add case subscripts

* wip

* wip

* wip

* 5.7-only

* wip

* wip

* wip

* wip

* fix

* revert store.finish task cancellation

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* add test for presentation scope

* wip

* wip

* wip

* wip

* wip

* cleanup

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* Rename ReducerProtocol.swift to Reducer.swift (#2206)

* Hard-deprecate old SwitchStore initializers/overloads

* wip

* wip

* Resolve CaseStudies crash (#2258)

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* Bump timeout for CI

* wip

* wip

---------

Co-authored-by: Jackson Utsch <jutechs@gmail.com>
Co-authored-by: Stephen Celis <stephen@stephencelis.com>
Co-authored-by: 유재호 <y73447jh@gmail.com>
Co-authored-by: Dmytro <barabashdmyto@gmail.com>
Co-authored-by: mbrandonw <mbrandonw@users.noreply.github.com>
2023-07-27 17:35:07 -07:00
Stephen Celis
a1e454c1e6 Depend on ConcurrencyExtras (#2301)
* wip

* wip

* wip

Fixes #1902.

* wip

* wip

* wip

* wip

* fix

* added test for subscribe/receive

---------

Co-authored-by: Brandon Williams <mbrandonw@hey.com>
2023-07-17 15:54:15 -07:00
Brandon Williams
55029c286d Fix delegate equatability in tutorial. (#2280) 2023-07-12 19:07:07 +00:00
Jesse Tipton
af16494b9e Fix ViewStore.init that should be ViewState.init in Bindings.md (#2261) 2023-07-05 14:04:44 -07:00
Jesse Tipton
1d3c42aa39 Fix WithViewStore argument label in Bindings.md (#2256) 2023-07-04 15:38:22 -07:00
Martin List
93031bb1cc Update code examples of Tree-based navigation documentation (#2252) 2023-07-01 07:59:37 -07:00
Yoshinori Imajo
32f9659d8f Fix codes in DocC (#2242)
* Update Performance.md

* Update Performance.md
2023-06-29 07:09:55 -07:00
Stephen Celis
43e28a57f3 Update docs for next release (#2238)
* Update docs for next release

* wip

* fix deprecations

---------

Co-authored-by: Brandon Williams <mbrandonw@hey.com>
2023-06-28 11:34:01 -07:00
Stephen Celis
b2f3ba5cdb Add EffectOf (#2237)
Joins `ReducerOf` and `StoreOf` for simplifying some call sites.
2023-06-28 11:06:22 -07:00
Stephen Celis
daf41b3370 Add public Store.send and Store.withValue (#2222) 2023-06-28 09:32:32 -07:00
Brandon Williams
522c0651c8 Add note to depend on library in first tutorial step. (#2225)
* Add note to depend on library in first tutorial step.

* wip
2023-06-22 11:42:40 -04:00
ccxla
c738afb57b Update tutorial for TestStore.receive() requirements (#2183)
* Add Action Equatable conformance to interactive tutorial code

* Add Equatable conformance note to YourFirstPresentation tutorial

* Small update

---------

Co-authored-by: Brandon Williams <mbrandonw@hey.com>
2023-06-19 09:26:55 -04:00
Oron Ben Zvi
60cbe145d6 Fix Cannot find type 'UUID' in scope (#2173) 2023-06-19 09:24:20 -04:00
ccxla
cffab60899 Fix shorthand argument name in 02-03-03-code-0010.swift (#2184) 2023-06-14 13:11:04 -07:00
ccxla
6d3096c8d6 Add missing actions in NavigationStacks tutorial sample code (#2185) 2023-06-14 13:10:26 -07:00
Thomas Tosoni
4f823d9341 Fix Typo in Navigation Documentation (#2190) 2023-06-11 10:00:43 -07:00
Dzianis Fileyeu
87acfff00b [fix] Typo in StackBasedNavigation.md (#2188) 2023-06-08 13:18:22 -07:00
ccxla
ced0be916e Fix noun instead of verb typo in MultipleDestinations tutorial (#2181) 2023-06-06 08:47:28 -07:00
Oron Ben Zvi
b4bebae8dd Fix state/action typo in NavigationStack tutorial (#2177) 2023-06-05 10:09:31 -04:00
Oron Ben Zvi
f6b71e1210 Fix a typo in NavigationStack tutorial (#2176) 2023-06-05 10:09:21 -04:00
Oron Ben Zvi
f0a48dd693 Fix ContactDetailFeature file name in navigation tutorial (#2175) 2023-06-05 09:30:14 -04:00
Nick Kohrn
f16e7751dd Update StackBasedNavigation Documentation (#2169) 2023-06-02 10:50:35 -07:00
Brandon Williams
d52a88d17e Add testing gotcha about double linking. (#2161)
* Add testing gotcha about double linking.

* clean up
2023-05-31 18:01:18 -04:00
Jaesung
9f2f526408 Update StackBasedNavigation.md to use .run instead using .fireAndForget (#2160)
* Update StackBasedNavigation.md

* Apply suggestions from code review

---------

Co-authored-by: Stephen Celis <stephen.celis@gmail.com>
2023-05-31 13:51:56 -07:00
Maciek Czarnik
d8913b3f97 Small fixes in the DocC (#2157)
* Fix some typos and minor errors

* Multiple presentation destinations and navigation stacks fixes

* Some more small fixes
2023-05-31 15:15:44 -04:00
Ryu
a70d02159a Effect.fireAndForget is deprecated, so rewrote it to run instead (#2153) 2023-05-31 10:08:59 -07:00
Sebastian Nicklas
29b5900836 Update StackBasedNavigation.md (#2154)
Fix some typos in StackBasedNavigation documentation
2023-05-31 09:04:26 -04:00
hmhv
8dfe7d6e0c Fix typo (#2152)
* Update 02-03-01-code-0001.swift

* Update 02-03-01-code-0002.swift

* Update 02-03-01-code-0003.swift

* Update 02-03-01-code-0004.swift

* Update 02-03-01-code-0005.swift

* Update 02-03-01-code-0008-previous.swift

* Update 02-03-01-code-0008.swift

* Update 02-03-01-code-0009.swift

* Update 02-03-01-code-0010.swift

* Update 02-03-01-code-0011.swift

* Update 02-03-01-code-0012.swift

* Update 02-03-01-code-0013.swift

* Update 02-03-01-code-0014.swift

* Update 02-03-01-code-0015.swift
2023-05-31 09:03:52 -04:00
Tatsuzo Araki
a5eb99fe1b Fix typos (#2155) 2023-05-31 09:03:09 -04:00
Alexander Cyon
166f418696 fix wrong state in navigation doc (#2150) 2023-05-30 11:11:54 -07:00
Stephen Celis
c432a76b5b Navigation (#1945)
* wip

* fix

* wip

* wip

* move

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* Fix

* wip

* wip

* Renamed action to onTap in NavigationLinkStore (#2043)

Renamed the `action` parameter to mirror other inits and differentiate itself from `action fromDestinationAction`

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* Tie view identity to stack element identity

* Tie item identity to case

* wip

* wip

* cleanup

* fix

* fix

* Add warning to nav link

* wip

* wip

* Rename FullscreenCover.swift to FullScreenCover.swift (#2062)

* wip

* fix isDetailLink on non-iOS platforms

* Correct some comments in Effect.swift (#2081)

* add integration tests for showing alert/dialog from alert/dialog.

* copy StackElementIDGenerator dependency before running TestStore receive closure.

* Removed some unneeded delegate actions.

* wip

* clean up

* lots of clean up

* Converted voice memos back to identified array

* update deps

* update docs for DismissEffect

* wip

* Add Sendable conformance to PresentationState (#2086)

* wip

* swift-format

* wip

* wip

* docs

* wip

* wip

* Catch some typos in Articles (#2088)

* wip

* wip

* wip

* wip

* wip

* docs

* wip

* wip

* docs

* wip

* wip

* wip

* wip

* docs

* docs

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* Fix invalid states count for 3 optionals and typos (#2094)

* wip

* wip

* more dismisseffect docs

* fixed some references

* navigation doc corrections

* more nav docs

* fix cancellation tests in release mode

* wrap some tests in #if DEBUG since they are testing expected failures

* update UUIDs in tests to use shorter initializer

* fixed a todo

* wip

* fix merge errors

* wip

* fix

* wip

* wip

* fixing a bunch of todos

* get rid of rawvalue in StackElementID

* more todos

* NavLinkStore docs

* fix swift 5.6 stuff

* fix some standups tests

* fix

* clean up

* docs fix

* fixes

* wip

* 5.6 fix

* wip

* wip

* dont parallelize tests

* updated demo readmes

* wip

* Use ObservedObject instead of StateObject for alert/dialog modifiers.

* integration tests for bad dismissal behavior

* check for runtime warnings in every integration test

* wip

* wip

* fix

* wip

* wip

* wip

* wip

* wip

* Drop a bunch of Hashables.

* some nav bug fixes

* wip

* wip

* wip

* fix

* fix

* wip

* wip

* Simplify recording test.

* add concurrent async test

* fix

* wip

* Refact how detail dismisses itself.

* fix

* 5.6 fix

* wip

* wip

* Add TestStore.assert.

* Revert "Add TestStore.assert."

This reverts commit a892cccc66.

* add Ukrainian Readme.md (#2121)

* Add TestStore.assert. (#2123)

* Add TestStore.assert.

* wip

* Update Sources/ComposableArchitecture/TestStore.swift

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

* Update Sources/ComposableArchitecture/Documentation.docc/Extensions/TestStore.md

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

* fix tests

---------

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

* Run swift-format

* push for store.finish and presentation

* move docs around

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* Add case subscripts

* wip

* wip

* 5.7-only

* wip

* wip

* wip

* wip

* revert store.finish task cancellation

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* add test for presentation scope

* wip

* wip

* wip

* wip

* wip

* cleanup

* updated presentation scope test

* sytnax update

* clean up

* fix test

* wip

* wip

* wip

* wip

* wip

---------

Co-authored-by: Brandon Williams <mbrandonw@hey.com>
Co-authored-by: Martin Václavík <mvaclavik96@icloud.com>
Co-authored-by: 유재호 <y73447jh@gmail.com>
Co-authored-by: Jackson Utsch <jutechs@gmail.com>
Co-authored-by: Dmytro <barabashdmyto@gmail.com>
Co-authored-by: Brandon Williams <135203+mbrandonw@users.noreply.github.com>
Co-authored-by: mbrandonw <mbrandonw@users.noreply.github.com>
2023-05-30 12:22:00 -04:00
Jaesung
c6cad7e660 [FIX] Fixed type: struct action to enum action (#2144) 2023-05-30 07:56:42 -07:00
Tomáš Slíž
4aab2176b5 Fix assertion values (#2128) 2023-05-22 10:50:57 -04:00
Tomáš Slíž
40d1f53cc6 Fix usage of static storage property (#2124)
* Fix usage of static storage property

* Remove irrelevant timeout parameter

* Add missing import
2023-05-22 07:57:09 -04:00
Brandon Williams
b075eb14d0 Add TestStore.assert. (#2123)
* Add TestStore.assert.

* wip

* Update Sources/ComposableArchitecture/TestStore.swift

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

* Update Sources/ComposableArchitecture/Documentation.docc/Extensions/TestStore.md

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

* fix tests

---------

Co-authored-by: Stephen Celis <stephen@stephencelis.com>
2023-05-19 16:15:12 -04:00
Brandon Williams
66013eaf65 Revert "Add TestStore.assert."
This reverts commit a892cccc66.
2023-05-19 13:38:40 -04:00
Brandon Williams
a892cccc66 Add TestStore.assert. 2023-05-19 13:37:48 -04:00
Stephen Celis
dae66e4248 DocC organization (#2118)
* DocC organization

* wip
2023-05-18 11:05:36 -07:00
Brandon Williams
6c94563494 Some small tutorial fixes. 2023-05-18 09:33:16 -04:00
Yuki Yamamoto
fdb6fbe4da Fix typo in the "Meet the Composable Architecture" tutorial (#2114)
* Fix typo

* Update Sources/ComposableArchitecture/Documentation.docc/Tutorials/01-YourFirstFeature.tutorial

* Update Sources/ComposableArchitecture/Documentation.docc/Tutorials/03-TestingYourFeature.tutorial

---------

Co-authored-by: Stephen Celis <stephen.celis@gmail.com>
2023-05-16 16:48:18 -07:00
Brandon Williams
3688b3d485 Make Send sendable (#2112)
* Make Send wrap a sendable closure.

* Move Send under the effects docs.

* Fixed a bunch of doc references.

* wip

* wip

* fix

---------

Co-authored-by: Stephen Celis <stephen@stephencelis.com>
2023-05-16 16:01:21 -04:00
Ryu
42702308fe Fix Document in Testing.md (#2110) 2023-05-16 09:40:40 -04:00
Brandon Williams
4d07372c6b Some tutorial fixes. (#2109)
* Some tutorial fixes.

* wip

* wip

* wip
2023-05-15 17:56:53 -04:00
Stephen Celis
2ff0e5d0be Fix 2023-05-15 14:55:15 -07:00
mbrandonw
2298702e02 Run swift-format 2023-05-15 21:12:17 +00:00
Brandon Williams
28ba78ccfd "Meet the Composable Architecture" tutorial (#2107)
* A 'meet TCA' tutorial

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* static let instead of state

* wip

* wip

* fix swift 5.6

* small fixes

* fixes

* wip

* typo fixes

* small fixes

---------

Co-authored-by: Stephen Celis <stephen@stephencelis.com>
2023-05-15 17:09:22 -04:00