Stephen Celis
4324761f33
Remove "Strict Reducers" Example ( #1116 )
2022-05-31 11:14:46 -04:00
Stephen Celis
fb0d371e14
Use eraseToEffect mapping functions ( #1102 )
2022-05-27 10:41:57 -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
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
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
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
Thomas Grapperon
85050a28a9
Fix WithViewStore issues with Views using escaping closures ( #1015 )
...
* Use a new instance of `ViewStore` in `WithViewStore`'s `body`
* Use explicit `self` for style coherence
* Remove `viewCancellable` additional reference in `newInstance()`
* Revert "Remove `viewCancellable` additional reference in `newInstance()`"
This reverts commit cb6a22ae4f .
* Change `viewCancellable` capture list
* Update `GeometryReader`'s workarounds
2022-03-11 15:23:42 -05:00
bjford
dd084dc147
Fix UIKitCaseStudies' List example ( #984 )
2022-01-26 08:58:26 -05:00
rono23
5a62003f28
Remove unused codes ( #972 )
2022-01-16 17:19:40 -05:00
rono23
ce142f2e17
Fix filename ( #970 )
2022-01-15 10:56:50 -05:00
Stephen Celis
43b2ae66ea
Scene delegate cleanup ( #959 )
...
* SwiftUI Case Studies: SceneDelegate -> App
* Generate plist files
2022-01-11 10:02:05 -05:00
Stephen Celis
fe97ad6027
Fix UIKit Case Study warning ( #924 )
...
* Fix UIKit Case Study warning
* wip
Co-authored-by: Brandon Williams <mbrandonw@hey.com >
2021-12-16 17:14:18 -05:00
Stephen Celis
87f388bedb
Further Modernize Demos ( #914 )
...
* Modernize Demos
* wip
2021-12-09 22:41:58 -05:00
Stephen Celis
99426bb72e
Fix Task.sleep deprecation warnings ( #911 )
2021-12-07 20:31:13 -05:00
stephencelis
8af720a021
Run swift-format
2021-12-07 14:14:59 +00:00
Wei Wang
63f2e77553
Add reset button to form binding case ( #910 )
2021-12-07 08:58:02 -05:00
Stephen Celis
a690937c25
Fix Alert Case Study ( #860 )
2021-10-18 10:21:23 -04:00
stephencelis
f92c2aec78
Run swift-format
2021-09-20 15:03:19 +00:00
Stephen Celis
0cd0c3ecce
Update AlertState to use new APIs ( #794 )
...
* Update AlertState to use new APIs
* fix
* Feedback
* wip
* Fix
* wip
* wip
* wip
* wip
2021-09-20 10:42:17 -04:00
mbrandonw
bb5da6a0a4
Run swift-format
2021-09-20 14:12:18 +00:00
Stephen Celis
8260a1ab8d
Fix bindable deprecations ( #815 )
...
* Fix Bindable Deprecations
* More CI
* wip
* wip
* wip
* wip
2021-09-20 10:03:43 -04:00
Stephen Celis
c0c95c5bab
Deprecate dynamic member lookup on view stores in favor of ViewStore.binding ( #810 )
...
* wip
* wip
2021-09-17 12:33:38 -04:00
filblue
0715ba0c61
Fix unfunctional cancel button handlers in AlertsAndActionSheets case study ( #779 )
...
* Fix unfunctional cancel button handlers in AlertsAndActionSheets case study
* Fix tests
* Removes *CancelTapped actions from AlertsAndActionSheets case study
2021-09-08 12:10:01 -04:00
Stephen Celis
af88fe4c79
Safer, Conciser Bindings ( #765 )
...
* Better binding tools.
* make everything public
* deprecate
* update
* clean up
* wip
* dml
* wip
* wip
* Fix a redundant conformance constraint warning in ForEachStore (#738 )
The warning was:
Sources/ComposableArchitecture/SwiftUI/ForEachStore.swift:141:28: warning: redundant conformance constraint 'EachContent' : 'View'
public init<EachContent: View>(
^
Sources/ComposableArchitecture/SwiftUI/ForEachStore.swift:146:16: note: conformance constraint 'EachContent' : 'View' implied here
EachContent: View,
^
I fixed the warning by removing the redundant constraint from the type
parameter.
* wip
* wip
* wip
* wip
* wip
* wip
* wip
Co-authored-by: Brandon Williams <mbrandonw@hey.com >
Co-authored-by: Adam Roben <aroben@apple.com >
2021-09-06 11:10:47 -04:00
filblue
dacd3de63f
NavigateAndLoad: Cancel loading on dismiss ( #757 )
...
* NavigateAndLoad: Cancel loading on dismiss
* Update Examples/CaseStudies/SwiftUICaseStudies/03-Navigation-NavigateAndLoad.swift
Co-authored-by: Stephen Celis <stephen.celis@gmail.com >
* Update Examples/CaseStudies/SwiftUICaseStudies/03-Navigation-Sheet-PresentAndLoad.swift
Co-authored-by: Stephen Celis <stephen.celis@gmail.com >
* Add cancellation to UIKitCaseStudies/NavigateAndLoad.swift
* Add cancellation to LoadThenNavigate studies
Co-authored-by: Stephen Celis <stephen.celis@gmail.com >
2021-09-01 17:25:54 -04:00
Stephen Celis
83e7557d7b
Simplify Reusable Download Component ( #756 )
2021-08-30 20:20:40 -04:00
Stephen Celis
575d7c0d59
Use Custom Dump ( #736 )
...
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* fix
* wip
* wip
* Model Tic-Tac-Toe board using proper type
* wip
* wip
* wip
* wip
Co-authored-by: Brandon Williams <mbrandonw@hey.com >
2021-08-22 22:45:27 -04:00
Stephen Celis
96cdc7e38e
Add Effect.task for wrapping units of async/await work ( #715 )
...
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* docs
* clean up
* Remove bad test
Co-authored-by: Brandon Williams <mbrandonw@hey.com >
2021-08-16 09:32:58 -04:00
Brandon Williams
a38e04da7d
Modernize some things ( #713 )
...
* Modernize some things.
* clean up
* wip
* wip
* clean up
* wip
* wip
2021-08-12 18:13:40 -04:00
mbrandonw
c24ea6e7ab
Run swift-format
2021-08-02 14:56:16 +00:00
Brandon Williams
8ae8a60770
@FocusState case study. ( #690 )
...
* @FocusState case study.
* compiler version
2021-08-02 10:49:59 -04:00
Stephen Celis
026482d270
tic-tac-toe package ( #684 )
...
* tic-tac-toe package
* Update Package.swift
* Tests
* wip
* wip
* wip
* Update Package.swift
2021-07-29 09:18:49 -04:00
Stephen Celis
5209f47b03
Update AlertState.Button APIs for animation ( #681 )
...
* Update AlertState.Button APIs for animation
* fix
* wip
* deprecate
2021-07-28 12:10:15 -04:00
stephencelis
14ced811f8
Run swift-format
2021-07-28 14:29:31 +00:00
Bernhard Loibl
71be9d9676
Enables animations for alert button actions ( #680 )
...
* Enables animations for alert button actions.
* Updates alert button api and previews.
Co-authored-by: Bernhard Loibl <bernhard.loibl@intive.com >
2021-07-28 10:21:41 -04:00
Stephen Celis
1b8c019e32
Update swift-format for Swift 5.5 ( #677 )
...
* wip
* Update format.yml
* wip
* Fix
* wip
2021-07-27 12:02:39 -04:00
stephencelis
4223ffbf97
Run swift-format
2021-07-26 19:16:30 +00:00
Brandon Williams
d4c0ff35de
Add an async/await aware .send method to View Store. ( #673 )
...
* wip
* case study
* docs
* clean up
* more compiler directives.
* xcode 12 fixes
Co-authored-by: Stephen Celis <stephen@stephencelis.com >
2021-07-26 10:10:35 -04:00
Stephen Celis
cd76e31ef6
Update demos to use failing environments ( #650 )
2021-07-12 17:36:40 -04:00
Stephen Celis
5664c9bfe5
Prep
2021-07-11 22:56:18 -04:00
Stephen Celis
ac7ea43ff2
Merge remote-tracking branch 'origin/main' into ia
2021-07-09 15:41:49 -04:00
stephencelis
b931cece42
Run swift-format
2021-07-08 15:02:03 +00: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
Stephen Celis
fd3beef833
Fix recursive case study ( #640 )
...
* Fix recursive case study
Relying on the array-based ForEachStore means potential crashes when
SwiftUI evaluates views that it shouldn't. We always prefer using
IdentifiedArray, so let's update this example accordingly.
* Use forEach under the hood
2021-07-08 10:38:24 -04:00
mbrandonw
7bda33df27
Run swift-format
2021-07-08 14:26:10 +00:00
Brandon Williams
50dc37e8d2
Fix websocket case study and FactClient. ( #639 )
...
* Fix websocket case study and FactClient.
* Rename unimplemented to failing.
* Update Examples/CaseStudies/SwiftUICaseStudies/FactClient.swift
Co-authored-by: Stephen Celis <stephen@stephencelis.com >
Co-authored-by: Stephen Celis <stephen@stephencelis.com >
2021-07-08 10:13:31 -04:00