Skip to content
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

Crash on tap to show the Partial sheet #176

Closed
Taimoor20 opened this issue Jun 8, 2023 · 2 comments
Closed

Crash on tap to show the Partial sheet #176

Taimoor20 opened this issue Jun 8, 2023 · 2 comments

Comments

@Taimoor20
Copy link

Taimoor20 commented Jun 8, 2023

I am tapping my button to show the Partial Sheet view but the app got crashed saying

Thread 1: Fatal error: No ObservableObject of type PSManager found. A View.environmentObject(_:) for PSManager may be missing as an ancestor of this view.

in library's PSManagerWrapper class

This is the link of the image: https://ibb.co/B6QXCMZ

@kenjimaeda65
Copy link

I also have this problem

@sergei-mikhailovskii-idf

Hello! it seems that u missed this lines in your code, innit?

/**
The Partial Sheet Manager helps to handle the Partial Sheet when there are many view layers.
Make sure to pass an instance of this manager as an environmentObject to your root view:

let sheetManager: PSManager = PSManager()
contentView.environmentObject(sheetManager)

*/

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

4 participants