wwt / SwiftCurrent

A library for managing complex workflows in Swift
https://wwt.github.io/SwiftCurrent/
Apache License 2.0
308 stars 19 forks source link

Adds interoperability between UIKit and SwiftUI to SwiftCurrent #97

Closed Tyler-Keith-Thompson closed 3 years ago

Tyler-Keith-Thompson commented 3 years ago

Linked Issue:

Checklist:

codecov-commenter commented 3 years ago

Codecov Report

Merging #97 (a73bbba) into main (8bf1e5b) will increase coverage by 0.07%. The diff coverage is 96.77%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #97      +/-   ##
==========================================
+ Coverage   94.71%   94.79%   +0.07%     
==========================================
  Files          62       65       +3     
  Lines        1608     1670      +62     
==========================================
+ Hits         1523     1583      +60     
- Misses         85       87       +2     
Impacted Files Coverage Δ
...rent_SwiftUI/UIKitInterop/HostedWorkflowItem.swift 90.00% <90.00%> (ø)
...terop/UIKitInteropProgrammaticViewController.swift 97.14% <97.14%> (ø)
...tCurrent_SwiftUI/Views/ViewControllerWrapper.swift 100.00% <100.00%> (ø)
Sources/SwiftCurrent_SwiftUI/WorkflowItem.swift 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 4d6f783...a73bbba. Read the comment docs.

Tyler-Keith-Thompson commented 3 years ago

https://user-images.githubusercontent.com/33705774/128616934-b8ed9c4a-6cee-4add-902f-073cade71a64.mp4

Here's a video of the PR in action. The first view is the UIViewController from our programmatic getting started guide. The second screen is a SwiftUI view. They're described as part of the same Workflow and it just works.

The sample app wasn't modified this way for everybody, just for the video demo.