tylerwilson
07/08/2023, 2:29 PMif let skiko = child.view.subviews.first {
skiko.snp.makeConstraints { make in
make.edges.equalToSuperview()
}
}
and that cleared it up for me. Perhaps it will for you as well?Giuliopime
07/08/2023, 2:42 PMtylerwilson
07/08/2023, 2:43 PMGiuliopime
07/08/2023, 2:45 PMtylerwilson
07/08/2023, 2:46 PMGiuliopime
07/08/2023, 2:47 PMtylerwilson
07/08/2023, 2:57 PMGiuliopime
07/08/2023, 3:05 PMDima Avdeev
07/10/2023, 9:25 AMtylerwilson
07/10/2023, 10:35 PMtylerwilson
07/10/2023, 11:06 PMrootView.backgroundColor = UIColor.whiteColor
This will break in cases when in dark mode. For example, I have a segmented control with three different embedded Compose UIViewControllers. When switching between them they flash white. I have set them to be .clear and that has fixed the issue. But what you like want to do is one of the following:
1. Nothing: let the OS do the right thing
2. Set to .clear so it should not impact either way.
3. Set to .systemBackground, then at least it will likely match the default mode (but will still flash in any customized views)Dima Avdeev
07/12/2023, 7:29 PM