Commit Graph

189 Commits

Author SHA1 Message Date
konomae
60fbb66016 Fix minor typo (#671)
* Fix typo: iff → if

* Add missing `>`
2021-07-26 08:17:31 -04:00
Stephen Celis
e7dda73c35 Fix Effect.throttle (#654)
* Fix Effect.throttle

Fixes #540.

* Simplify

* Publicize
2021-07-13 11:06:51 -04:00
Stephen Celis
ac7ea43ff2 Merge remote-tracking branch 'origin/main' into ia 2021-07-09 15:41:49 -04:00
Stephen Celis
50a16e072e Deprecate array-based forEach/ForEachStore (#641)
* Deprecate array-based forEach/ForEachStore

* Update tests
2021-07-08 10:49:13 -04:00
mbrandonw
fd770f93a6 Run swift-format 2021-07-08 13:56:53 +00:00
Brandon Williams
96a4654767 Bring back deprecated IfLetStore initializer. (#638) 2021-07-08 09:47:38 -04:00
Brandon Williams
5f6d8a2538 Don't use CasePath in .binding (#632)
* Don't use CasePath in .binding

* wip

* wip

* wip
2021-07-07 18:05:43 -04:00
Brandon Williams
e32172b268 Remove some old deprecated code. (#629) 2021-07-05 13:21:13 -04:00
Stephen Celis
e1c7077cd1 wip 2021-06-25 16:42:22 -04:00
Stephen Celis
fab3510d54 wip 2021-06-25 13:06:45 -04:00
Brandon Williams
3d8db944c7 Add SwitchStore and CaseLet (#594)
* wip

* ttt

* simplfiy

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* fix

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* docs

* wip

* wip

* wip

* wip

* wip

* updates

* revert ttt stuff'

* xcode 11 fixes

Co-authored-by: Stephen Celis <stephen@stephencelis.com>
2021-06-14 10:46:36 -04:00
stephencelis
155e031dd7 Run swift-format 2021-06-01 17:02:26 +00:00
Stephen Celis
dc3576bbd8 Only breakpoint when debugger is attached (#579)
* Only breakpoint when debugger is attached

* Update Breakpoint.swift

* Add breakpoint instruction
2021-06-01 09:46:31 -07:00
Brandon Williams
6146345c18 Add a few more store tests. (#516)
* Add a few more store tests.

* wip

* wip

* tweaks

* wip
2021-04-28 17:06:55 -05:00
Stephen Celis
c53a961920 Add @ViewBuilder to ForEachStore and IfLetStore (#501)
* Add @ViewBuilder to ForEachStore and IfLetStore

* Update IfLetStore else branch to take view builder
2021-04-20 11:10:30 -04:00
Stephen Celis
5bdf0bc904 FormAction → BindingAction (#372)
* Rename FormAction to BindingAction

* Deprecations

* Fix test

* Update 01-GettingStarted-Bindings-Forms.swift
2021-02-01 16:41:36 -05:00
Stephen Celis
4449bc2e24 Add TextState (for AlertState, ActionSheetState, etc.) (#359)
* Use SwiftUI.Text with {Alert,ActionSheet}State

Fix #293, #318.

* Use public interface

* Availability

* TextState

* Note

* Simplify

* Update LocalizedStringTests.swift

* Fix warnings

* Fix docs
2021-01-21 17:50:34 -05:00
Stephen Celis
5ddbcdd21a Rename publisher-transforming scope (#314)
* Rename publisher-transforming scope

* feedback
2020-10-29 17:29:52 -04:00
Stephen Celis
c4f225b825 Extract supplemental libraries (#315)
* Extract supplemental libraries

* Fix
2020-10-29 16:10:02 -04:00
Brandon Williams
584a1384e4 Remove some CustomDebugOutputConvertible conformances. (#312)
* Remove some CustomDebugOutputConvertible conformances.

* fix tests
2020-10-19 12:46:21 -04:00
Michael Brown
d06e4302a4 Don't depend on Equatable conformance of DispatchQueue (#311) 2020-10-19 12:03:24 -04:00
Michael Brown
74017427ed Fixes bug with LocalizedStringKeyTests (#299)
* * Fix locale issues with LocalizedStringKeyTests
* Use the locale parameter in LocalizedStringKey.formatted()

* Changed test locale to "en_US_POSIX"
2020-09-30 12:06:51 -04:00
stephencelis
281b07abd1 Run swift-format 2020-08-31 20:32:38 +00:00
Stephen Celis
5171335620 Localizable Alerts and Action Sheets (#275)
* Localizable Alerts and Action Sheets

Fixes #237.

* Tests/fixes

* Update LocalizedStringKey.swift

* Fix
2020-08-31 16:31:34 -04:00
Stephen Celis
3deb9a01bf Make deprecated interfaces unavailable (#219) 2020-07-09 09:24:28 -04:00
Alejandro Martínez
f40942fa08 Added file and line to optional assert (#218)
* Added file and line to optional assert

* Apply suggestions from code review

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

* Deprecate old optional property and migrated TicTacToe example

* Migrated other examples to optional() and added file/line to forEach

* Update Deprecations.swift

Co-authored-by: Stephen Celis <stephen.celis@gmail.com>
2020-07-08 17:18:48 -04:00
Brandon Williams
207fdfe1dc Remove schedulers in favor of using combine-schedulers (#184)
* Start using combine-schedulers.

* fixes

* wip
2020-06-15 09:10:28 -05:00
Stephen Celis
d2d994dff5 Cancellation Fixes (#169)
* Failing test when reusing cancellation id.

* wip

* Clean up

* update test

* Update Tests/ComposableArchitectureTests/TimerTests.swift

* move methods around

* wip

* more

* wip

Co-authored-by: Brandon Williams <mbw234@gmail.com>
2020-06-04 13:38:20 -04:00
Kaan Dedeoglu
a20b0b1d6a Encapsulate Publishers.Create and AnyPublisher(_ callback:) (#146) 2020-05-28 14:16:47 -04:00
Brandon Williams
1005bbd393 Signpost instrumentation of reducers (#142)
* Signpost higher-order reducer.

* cleanup

* guard

* clean up

* wip

* more

* wip

* wip

* wip

* clean up

* clean up

* wip

* run

* wip

* wip

* clean up

* Update Makefile

* No failures

* cleanup

* Update Makefile

* already guarded

Co-authored-by: Stephen Celis <stephen@stephencelis.com>
2020-05-27 10:22:10 -07:00
Stephen Celis
bf24a8cce0 Avoid simultaneous access crash on double-cancel (#137)
* Avoid simultaneous access crash on double-cancel

* fixes

* fix
2020-05-26 19:14:51 -04:00
Brandon Williams
b3d9270722 Correctly show (no state changes) in diff. (#132)
* Correct show (no state changes) in diff.

* test for debug operator with no state changes
2020-05-25 12:26:43 -07:00
Stephen Celis
2af6ac2307 Gracefully handle recursive state debug output (#117)
* Gracefully handle recursive state debug output

* Fix
2020-05-19 13:22:40 -04:00
Stephen Celis
e8e272a7c0 Make Reducer.debug API more like Publisher.print (#111)
* Make Reducer.debug API more like Publisher.print

* Deprecations
2020-05-18 11:18:11 -04:00
mbrandonw
7cf2bf3ada Run swift-format 2020-05-15 16:33:07 +00:00
Brandon Williams
812a7fa83f Remove some old tests and guard debug code in #if DEBUG. (#104)
* Remove some old tests and guard debug code in #if DEBUG.

* remove background color

* fix test targets

* clean up more tests
2020-05-15 09:32:05 -07:00
Stephen Celis
0807f9a8f8 Rename certain Effect APIs (#92)
* Rename certain Effect APIs

* Move deprecations

* Fix
2020-05-13 14:12:56 -04:00
Brandon Williams
24dbab19e2 Stop vendoring CasePaths (#87)
* wip

* Underscore unused arguments.

* clean up

* add resolved file

* remove

* update url and version
2020-05-13 11:33:41 -04:00
Brandon Williams
d2240d0e76 The Composable Architecture
Co-authored-by: Stephen Celis <stephen.celis@gmail.com>
2020-05-03 22:26:28 -07:00