-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
ComposeUIViewController don't Update View #4781
Comments
I found a solution. It may well be that this isn't a bug at all. If so, I'm very sorry for the disruption! You have to use the updateUIViewController in the calling UIViewControllerRepresentable. I did it like this:
Felt a bit hacky but it worked |
Sorry, I'm not exactly following what you are trying to achieve. There is too much information missing.
This function creates a new
It's not exactly clear what's happening in here. Do you mean, that parameters used by |
Hello I have
fun SelectAppointmentViewController(
bookAppointmentScreenModel: BookAppointmentScreenModel,
appointmentBody: AppointmentBody
) = ComposeUIViewController {
MaterialTheme(colors = ColorSystem.ColorPalette()) {
SelectAppointmentCompose(bookAppointmentScreenModel, appointmentBody)
}
}
When I start the app in Android the SelectAppointmentCompose is updated. When the app starts from MainViewController in IOS also.
The problem occurs as soon as I call the SelectAppointmentCompose via the SelectAppointmentViewController in Swiftui. Then the compose is not redrawn with new calls, although SelectAppointmentViewController is called with new parameters
The text was updated successfully, but these errors were encountered: