Skip to content
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

Add embedded to playground #4025

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

porter-stripe
Copy link
Collaborator

@porter-stripe porter-stripe commented Sep 17, 2024

Summary

  • Adds an embedded toggle to the playground that when enabled results in a new view controller being presented with the embedded integration
  • Passes in the settings and appearance. In the future we may need to pass more info in, but can add as needed.
  • When embedded is selected we enforce that we are not using CSC or horizontal mode
Simulator.Screen.Recording.-.iOS.18.-.2024-09-17.at.11.49.45.mp4

Motivation

  • Easier embedded testing

Testing

  • Manual

Changelog

N/A

} set: { newUIStyle in
// If we switch to embedded put style back to vertical and default back to deferred CSC if we are in an intent first integration
if newUIStyle == .embedded {
playgroundController.settings.layout = .vertical
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Even though embedded doesn't use this layout API, I think it makes the most sense to change the toggle to vertical as that's what most resembles embedded.

@porter-stripe porter-stripe marked this pull request as ready for review September 17, 2024 23:25
@porter-stripe porter-stripe requested review from a team as code owners September 17, 2024 23:25
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.

1 participant