Skip to content

Conversation

@johnnewman-square
Copy link
Contributor

@johnnewman-square johnnewman-square commented Jul 29, 2025

This PR adds support to ViewControllerDescription for dynamic view controller types. This is used in cases where the static type of the description's view controller is not granular enough, like implementations that supply a UIViewController.self type to ViewControllerDescription instead of the subclass type.

This is behind a DynamicControllerTypes SPI to encourage use of the existing initializer that uses generics.

Checklist

  • Unit Tests
  • UI Tests
  • Snapshot Tests (iOS only)
  • I have made corresponding changes to the documentation

@johnnewman-square johnnewman-square force-pushed the johnnewman/feature/dynamic-types branch from 1276ea8 to ba762be Compare August 7, 2025 16:29
@johnnewman-square johnnewman-square marked this pull request as ready for review August 7, 2025 18:48
@johnnewman-square johnnewman-square requested review from a team as code owners August 7, 2025 18:48
* main:
  [feat]: add runtime option to skip render if state is inferred to be unchanged (#364)
  [gardening]: remove doc comment for nonextant parameter (#363)
@johnnewman-square johnnewman-square merged commit 375e4a8 into main Aug 14, 2025
12 checks passed
@johnnewman-square johnnewman-square deleted the johnnewman/feature/dynamic-types branch August 14, 2025 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants