Replies: 2 comments
-
I am wondering the same thing. did you find a solution? |
Beta Was this translation helpful? Give feedback.
-
Just chiming in about this case: The fade transition in itself works great! However, all the fading seems to not keep the previous view which leaves an opportunity to show the internal hosting controller background. There are workarounds to this; you can tint the color of the internal hosting by just making an struct TransparentBackground: UIViewRepresentable {
func makeUIView(context: Context) -> UIView {
let view = UIView()
DispatchQueue.main.async {
view.superview?.superview?.backgroundColor = .clear
}
return view
}
func updateUIView(_ uiView: UIView, context: Context) {}
} Then using it with The other thing was to bring the UIKit fade animation so it correctly fades both the views with I was wondering @davdroman if there is a way to make a fade that keeps the current view in place and just fades in the new view to present? 🤔 |
Beta Was this translation helpful? Give feedback.
-
thank you for creating this library @davdroman!
I have a global background color in my app (implemented using the ZStack approach). How do I change the fade transition to have the same color?
RPReplay_Final1703972675.mov
notice how the background changes to white (black if dark mode) during the fade transition.
Beta Was this translation helpful? Give feedback.
All reactions