Commit Graph

554 Commits

Author SHA1 Message Date
stephencelis
bd919feddb Run swift-format 2022-06-03 21:19:09 +00:00
Stephen Celis
9704bc2bd2 Update Search Demo to use Open-Meteo (#1110)
MetaWeather.com has been offline for awhile now, with no sign of return.
Open-Meteo appears to have a more active presence, so let's rely on it
for now, instead.

Co-authored-by: Brandon Williams <mbrandonw@hey.com>
2022-06-03 17:08:58 -04:00
Stephen Celis
c8a2e9490a Test Store documentation updates (#1129) 2022-06-03 17:02:38 -04:00
Stephen Celis
6f68096862 Prevent swift-format issue 2022-06-03 14:44:24 -04:00
stephencelis
095b4de837 Run swift-format 2022-06-03 16:01:00 +00:00
Thomas Grapperon
37d05164c3 Conform WithViewStore to Commands (#1113)
* Conform `WithViewStore` to `Commands`

* Fix typo

* Add coverage for `Commands`

* Fix documentation

* Conform `WithViewStore` to `AccessibilityRotorContent` and `ToolbarContent`

* Conform `WithViewStore` to `TableColumnContent`

* Fix indentation

* Conform `WithViewStore` to `TableRowContent`

* Fix Typo

* Conform `WithViewStore` to `DynamicTableRowContent`

* Reorder declarations according to the protocol name

* Add coverage for `WithViewStore` new conformances

* Remove Table-related conformances

* Rearrange extensions for better autocomplete.

Co-authored-by: Brandon Williams <mbrandonw@hey.com>
2022-06-03 11:53:54 -04:00
Brandon Williams
24548d000d Make TestStore.state public (#1127)
* Make TestStore.state public.

* wip
2022-06-03 08:21:34 -07:00
Stephen Celis
4324761f33 Remove "Strict Reducers" Example (#1116) 2022-05-31 11:14:46 -04:00
mbrandonw
9f1cfeeaf0 Run swift-format 2022-05-30 19:51:08 +00:00
Brandon Williams
ea010ff15a Fix for attribute cycle in tic-tac-toe. (#1114)
* Fix for attribute cytcle.

* wip

* wip
2022-05-30 12:44:28 -07:00
Stephen Celis
fb0d371e14 Use eraseToEffect mapping functions (#1102) 2022-05-27 10:41:57 -04:00
konomae
1ddfab852d Fix minor typo (#1109) 2022-05-26 07:20:30 -07:00
Stephen Celis
dc9dd315ee Cleanup (#1107) 2022-05-24 15:15:57 -04:00
stephencelis
9c0d64467f Run swift-format 2022-05-19 15:10:28 +00:00
Cristian Díaz
99da71ff51 Add throttle overloads that take types (#1101)
Co-authored-by: Cristian Díaz <cristian.diaz@monstar-lab.com>
2022-05-19 11:01:29 -04:00
stephencelis
3641479f93 Run swift-format 2022-05-18 14:06:33 +00:00
Sven A. Schmidt
42fa1d0983 Add SPI docc config (#1094) 2022-05-18 09:58:02 -04:00
Stephen Celis
c307541328 Allow synchronous fireAndForget to throw (#1092) 0.35.0 2022-05-16 12:40:28 -04:00
stephencelis
5fd736945c Run swift-format 2022-05-13 18:28:55 +00:00
Ryan Carver
f00277ac64 Tighten TestStore equality expectations (#1091)
* Add tests for TestStore equality assertions

* Change TestStore to require a state change if a closure is given

* Update a use of TestStore that described a change unnecessarily

* Remove unused mainQueue
2022-05-13 14:20:01 -04:00
Stephen Celis
65401c361a Modernize case study using Notification Center (#1090)
* Use NotificationCenter directly in case study

* wip

* wip
2022-05-12 13:30:11 -04:00
Stephen Celis
c232a9f353 Swift 5.7 fixes (#1089)
* Fix Swift 5.7 warnings

* Fix Swift 5.7 threading issue
2022-05-12 13:07:37 -04:00
Brandon Williams
79e44cebd4 Ignore errors thrown in fireAndForget. (#1088)
* Ignore errors throw in fireAndForget.

* Update Sources/ComposableArchitecture/Effects/Concurrency.swift

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

* Update Sources/ComposableArchitecture/Effects/Concurrency.swift

Co-authored-by: Stephen Celis <stephen@stephencelis.com>
2022-05-10 10:24:59 -07:00
Brandon Williams
07cd0c2cf3 Add priority to async fireAndForget. (#1084)
* Add priority to async fireAndForget.

* actually use priority
2022-05-06 18:58:04 -07:00
mbrandonw
0adbc62ab7 Run swift-format 2022-05-06 20:38:58 +00:00
Brandon Williams
1fe9fb7e95 Async fire-and-forget (#1083)
* Make fireAndForget async.

* wip

* tests
2022-05-06 13:30:23 -07:00
Stephen Celis
f0098d8232 Add cancel overloads that take types (#1078)
* Add cancel overloads that take types

* wip
2022-05-03 21:00:24 -04:00
Stephen Celis
bf521e9e5d Improve performance of type-safe effect cancel token lookup (#1077)
* Add type discriminator to effect cancel id hashing

* wip
2022-05-03 17:35:09 -04:00
Brandon Williams
e0b7206202 Rename longLivingEffects to inFlightEffects. (#1076) 2022-05-03 11:07:36 -07:00
Stephen Celis
1d6f65c692 Fix docs 2022-05-03 08:55:13 -04:00
Brandon Williams
af3eed801a Move send(_:animation:) to ViewStore.swift. (#1075) 2022-05-02 17:44:45 -07:00
Thomas Grapperon
007c857bde Fix references to swift-parsing (#1071) 2022-04-30 19:32:00 -07:00
Stephen Celis
bdc17a2ce8 Fix package tools 5.5 warning (#1065) 2022-04-27 12:01:35 -04:00
stephencelis
25955ff468 Run swift-format 2022-04-27 04:10:34 +00:00
Tatsuzou Araki
3523af1d91 Fix invalid web socket server URL (#1064) 2022-04-27 00:03:18 -04:00
mbrandonw
96f47fbe85 Run swift-format 2022-04-08 16:57:56 +00:00
Brandon Williams
c8482eb61b Move DEBUG check to runtimeWarning function. (#1056)
* Move DEBUG check to runtimeWarning function.

* wip
2022-04-08 09:48:35 -07:00
Kevin Lundberg
1a2dd2d505 Add a map-style overload to eraseToEffect (#1050) 2022-04-07 09:40:52 -04:00
Stephen Celis
1bb0ad7c46 CI: macOS 12 + DocC (#1047)
* macOS 12

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* basics

* wip

* wip

* wip

* wip

* wip
2022-04-07 09:40:23 -04:00
Stephen Celis
97c3a498de Update ci.yml 2022-03-30 13:16:40 -04:00
stephencelis
ea07f63f3d Run swift-format 2022-03-29 21:17:14 +00:00
Pat Brown
5da277f16f Effect.cancel(ids:) prefer array of ids and deprecate variadic overload (#1041)
* Use array of ids and deprecate variadic overload

* Update Sources/ComposableArchitecture/Internal/Deprecations.swift

Co-authored-by: Stephen Celis <stephen.celis@gmail.com>
2022-03-29 17:09:22 -04:00
Nick Sillik
a09c1ef6e2 Upgrade swift-case-paths to 0.8.0 (#1037)
The latest release of swift-case-paths fixes an [issue](https://github.com/pointfreeco/swift-case-paths/issues/63)
that can lead to crashes when using TCA. This commit upgrades the version to include the fix.
2022-03-23 15:27:29 -04:00
Sven A. Schmidt
526f70fc02 Update .spi.yml (#1026) 2022-03-17 08:24:02 -04:00
Brandon Williams
d1d71606a4 Update failure message for better order. (#1025) 2022-03-16 12:51:46 -07:00
Pat Brown
02ac00d4ed Add transparent attribute to runtimeWarning (#1024) 2022-03-15 20:18:17 -04:00
Stephen Celis
2828dc44f6 Runtime Warning Finesse (#1023) 0.34.0 2022-03-15 16:21:13 -04:00
Thomas Grapperon
1efde6e57a Add icons variants for required resolutions (#1017)
* Add icons variants for required resolutions

* Optimize PNG's size

Even without centralizing the resources, we can already save a few bytes.
The total size was reduced by 75%.

* Replace iTunes variants by a very compact transparent image

This will never hit the AppStore anyway.

* Replace images by lossless optimized variants

The previous optimization pass was lossy. This PR replace images with an optimized lossless variant of the original.

* Restore original iPhone icons

I don't know why images that were supposedly losslessly optimized by ImageOptim were less vibrant than the original.
I restored them by their original variants. Upscaled variants are less vibrant though, but I guess it's acceptable without access to the original vector source.

* Fix color space

ImageOptim seems to change the color space when it optimizes files losslessly.
I've created new variants with Pixelmator Pro and exported as web-compressed from there instead.
2022-03-15 16:15:19 -04:00
stephencelis
d924b9ad27 Run swift-format 2022-03-11 20:52:38 +00:00
bjford
a4ea02e683 Add unit tests to UIKitCaseStudies (#1002) 2022-03-11 15:24:34 -05:00