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

suggest with container provider #930

Closed

Conversation

dima-avdeev-jb
Copy link

@dima-avdeev-jb dima-avdeev-jb commented Dec 8, 2023

I think, better move extension function ProvideContainerCompositionLocals to class member.
Then we can change to private visibility for values interfaceOrientationState and systemThemeState


@OptIn(InternalComposeApi::class)
@Composable
internal fun ProvideContainerCompositionLocals(
Copy link
Member

Choose a reason for hiding this comment

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

I think it was better - as I said before, it doesn't seem right at all to have @Composable functions inside UIViewController
Also, you're exposing interfaceOrientationState and systemThemeState via locals anyway

@dima-avdeev-jb dima-avdeev-jb force-pushed the dima.avdeev/ios-single-layer-compose-scene branch from 24334fd to 76cfbe7 Compare December 9, 2023 05:57
Base automatically changed from dima.avdeev/ios-single-layer-compose-scene to jb-main December 9, 2023 06:45
@dima-avdeev-jb dima-avdeev-jb deleted the dima.avdeev/suggest-with-container-provider branch December 14, 2023 02:05
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.

2 participants