Thanks. Seems you are passing an instance of OnboardingView to a method !!! As you know, in SwiftUI, View is a struct -- value type, and passing or assigning a view would cause any unexpected behavior and that is one thing you should never do. You may need to find a way to achieve what you want without passing a View.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: