-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Beta] Removes usage of AnyView #77
Conversation
…present more than one thing there is no longer an AnyView! WOOO! - MW MZ TT
… breaking - MZ MW TT
…do not skip anything and if you do not look at it too hard - TT MZ MW
…flowContent and replaced custom model with existing WorkflowViewModel - TT MZ MW
…ified body in an if statement - MW TT
…o something with them! - TT MZ MW
…s an explicit publisher and not some value that got set to nil - MZ MW TT
… calling thenProceed - TT
…ssthrough representable is in the middle of a Workflow - TT
…edWorkflowView can be private - TT
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How much testing is left on this?
Co-authored-by: Richard Gist <[email protected]>
EOD: We have obliterated AnyView which is just a beautiful feeling. At this point we believe this is ready to merge to trunk but would recommend merging the example app first. That'll give a test bed to make sure things still work and give us the ability to play around with animations n' such. AnyView has been shot and buried out back, may it never rise again. |
Conflicts: Tests/SwiftCurrent_SwiftUITests/SwiftCurrent_SwiftUITests.swift Updates: ExampleApps/SwiftUIExample/SwiftUIExampleTests/Views/ContentViewTests.swift ExampleApps/SwiftUIExample/SwiftUIExampleTests/Views/AccountInformationViewTests.swift ExampleApps/SwiftUIExample/SwiftUIExampleTests/ViewInspector/InspectableExtensions.swift
EOD: Launcher seems to be the problem. See the debug branch: anyview-debug UPDATE: HAHA just kidding it's ObservedObject letting Launcher take the fall. |
…ject issues. Production code behaves exactly as expected and tests merely need to adapt - TT
My EOD: So I played with this a bunch and got a working solution. The The SwiftUIExample tests all pass but lie about StateObject being misused. DO NOT LISTEN TO THEM. This is actually a ViewInspector thing, because it's hosting a view that wraps a An update on what I did:
|
…fter the first thenProceed but before the last - TT
…t for the new world - RAG
… the stuff I accidentally broke when I went from form to vstack - TT
…render and actually throws the fatal error - TT
This question is "no" with the current implementation. We can easily make this happen though and have already determined the consumer experience is much better. I'm holding off on a commit while we come up with a name. Proposals: ... that's it so far. |
…ade sure we aren't lying to our users! - MOB
You cannot have a PR about recursion without a comment about recursion |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good enough to Demo. Anything missed, we could open an issue on and solve it.
Linked Issue: #76
Checklist:
If Applicable:
If Public API Has Changed: