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

roundCorners of EKAttributes doesn't work for customView/viewController #348

Open
Roen-Ro opened this issue Jul 12, 2021 · 1 comment
Open

Comments

@Roen-Ro
Copy link

Roen-Ro commented Jul 12, 2021

As title, the following code shows how i set the roundCorners for a customView display

        let customView = UIView(frame: CGRect(x: 0, y: 0, width: self.view.width, height: self.view.height/2));
        customView.backgroundColor = UIColor.yellow;

        var attributes = EKAttributes.bottomNote;
        attributes.screenBackground = .color(color: EKColor(UIColor(white: 0.25, alpha: 0.85)));
        attributes.positionConstraints.safeArea = .overridden;
        attributes.positionConstraints.size = .init(
            width: .constant(value: 300),
            height: .constant(value: 500)
        )
        attributes.roundCorners = .top(radius: 25) //doesn't work
        
        SwiftEntryKit.display(entry: customView, using: attributes)

Expected behavior
F6710E76-00B3-4035-A484-C1C383C80339

@feixue299
Copy link

You should set the entryBackground instead of the customView's backgroundColor

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

2 participants