Commit Graph

166 Commits

Author SHA1 Message Date
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
stephencelis
12ae834de9 Run swift-format 2022-02-07 22:34:34 +00:00
Stephen Celis
47b5f1ba52 Cleanup 2022-02-07 17:19:01 -05:00
Omar Albeik
02cf7590ff Fix edit while filtered bug in todos example app (#999) 2022-02-07 17:14:11 -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
iampatbrown
e5e10d8e87 Update .cancellable implementation to fix #946 (#949)
* Subscribe to upstream publisher instead of PassthroughSubject

* Fixed operator order

* Replaced RunLoop.immediate with RunLoop.test
2022-01-07 16:10:42 -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
83ae32a3c1 Fix Speech deprecation warnings (#922)
* Fix Speech deprecation warnings

* wip
2021-12-16 16:31:48 -05:00
Stephen Celis
ef5201ac0a Clean up Voice Memos demo (#915)
* Clean up Voice Memos demo

* Tests
2021-12-13 11:47:15 -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
edfe198d01 Fix typo in Tic-Tac-Toe demo (#905) 2021-12-01 10:12:39 -05:00
Ken Grigsby
c41f8c4a21 Remove duplicate debug (#888) 2021-11-11 15:19:16 -05:00
Stephen Celis
a690937c25 Fix Alert Case Study (#860) 2021-10-18 10:21:23 -04:00
iampatbrown
b5719bf1ca Update example app entry points and some minor changes (#859)
* TicTacToe Readme updates

* Use new .catchToEffect(_ transform:) in example

* Added Todos Readme

* Added VoiceMemos Readme wip

* Updated VoiceMomos Readme

* Updated Todos Readme

* Added value to animation modifier

* Update VoiceMemos entry point

* Update Todos entry point

* Update Search entry point

* Update SpeechRecognition entry point

* Updated SpeechRecognition models

* Revert "Updated SpeechRecognition models"

This reverts commit dc77e7a638.
2021-10-18 09:24:02 -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
Brandon Williams
caa10bc74d Clean up speech recognition case study. (#812)
* Clean up speech recognition case study.

* fix tests

* clean up;
2021-09-17 15:27:09 -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
21c8b4d8ef Update tests to use XCTAssertNoDifference (#739) 2021-08-24 14:45:23 -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
40a6c2cd7d Model Tic-Tac-Toe board using proper type (#722)
* Model Tic-Tac-Toe board using proper type

* Update GameCore.swift

* wip

* wip
2021-08-19 10:59:36 -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
mbrandonw
692435d22a Run swift-format 2021-08-12 22:19:58 +00: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
Brandon Williams
c7d7d3cf1a Make sure debounced values are delivered on specified scheduler. (#714)
* Make sure debounced values are delivered on specified scheduler.

* fix deferring too

* wip
2021-08-12 17:50:47 -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
68a6883045 Use modify helper in Tic-Tac-Toe integration test (#687)
* Use `modify` helper

* Clean up breakpoint warnings
2021-07-29 16:40:59 -04:00
Stephen Celis
7a19bd63f5 Clean up for Tic-Tac-Toe updates (#685) 2021-07-29 11:21:50 -04:00
stephencelis
55cf912712 Run swift-format 2021-07-29 13:24:54 +00: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