Friday, May 20, 2022
HomeiOS Developmentios - Take away shadow impact on background colour throughout web page...

ios – Take away shadow impact on background colour throughout web page transition


I am making an utility with SwiftUI that has a blue background colour, so I did that by this:

var physique: some View {
  NavigationView {
    ZStack {
      Shade("ThemeColor").edgesIgnoringSafeArea(.prime)
      Shade("BgColor")
      VStack {
        // ...
      }
    }
  }
}

I gave the standing bar a blue background(ThemeColor) and the web page itself a white(BgColor) background. This works as anticipated, however after I press a Navigation Hyperlink, the animation is a bit bizarre:
Transition

A shadow impact seems on the standing bar, which makes the animation look awkward. Can I take away this shadow impact? It could be higher if the shadow on the web page itself (the white half) can be not eliminated.

RELATED ARTICLES

Most Popular

Recent Comments