Skip to content

Support for other SwiftUI views #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
xianman opened this issue Oct 11, 2022 · 0 comments
Open

Support for other SwiftUI views #8

xianman opened this issue Oct 11, 2022 · 0 comments

Comments

@xianman
Copy link

xianman commented Oct 11, 2022

Hi there! I really love this type of onboarding experience, but trying to use it in my app I'm running into a problem...

In my main ContentView where I'd like to use SwiftUIProgressiveOnboard, I have embedded another swiftUI view, lets called it OtherSwiftUIView which contains a number of Views that I'd also like to have FilterViews created on.

I've tried adding
@ObservedObject var onboard = ProgressiveOnboard.init(withJson: progressiveOnboardsJson)
to my OtherSwiftUIView, then used
.background(ProgressiveOnboardGeometry(withRect: $onboard.filterViews[0]))
on views within that views body, but all the newly added FilterViews get placed up at the top of the screen and not where I'd expect them to show up.

I hope this is clear enough, please let me know if you need a better example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant