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

Incorrect Operation of isOpaque Parameter in iOS 14 Bottom Sheet #190

Open
azamattajiyev opened this issue May 10, 2024 · 0 comments
Open

Comments

@azamattajiyev
Copy link

A problem with the isOpaque parameter for the bottom sheet on iOS 14 has been discovered. Setting isOpaque to true does not lead to the expected outcome — the window remains translucent.

Steps to Reproduce:

  1. Create a bottom sheet in an application on iOS 14.
  2. Set the isOpaque parameter to true.
  3. Launch the application and open the bottom sheet.

Expected Result:
The popup is not visible.

.popup(isPresented: $isPresented) {
    Text("Hello, World")
} customize: {
    $0
        .type(.floater(verticalPadding: 0, horizontalPadding:0))
        .isOpaque(true)
        .position(.bottom)
        .closeOnTap(false)
        .closeOnTapOutside(true)
        .backgroundColor(.black.opacity(0.4))
        .dragToDismiss(true)
        .animation(.linear(duration: 0.15))
}
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