iOS 14 SwiftUI Selecting Textfield Calls Parent View's .onAppear

422 Views Asked by At

I call to hide and show my TabBar in my view's .onAppear, this functionality worked fine in iOS 13 and Xcode 11. However, after updating to Xcode 12 and iOS 14 whenever I select a TextField in a child view which was presented via NavigationLink, the parent's .onAppear function is called. This results in unwanted calls, particularly calls that hide/show my app's TabBar.

Is this normal behavior?

0

There are 0 best solutions below