Closed abdelmagied94 closed 4 years ago
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I had same issuse, please update set cornerRadius via function to fix issue.
I found a quick fix for this issue by setting popup.view.backgroundColor = .clear
Report
Environment
Dependency management
What did you do?
Try to add custom corner radius to
PopupDialogContainerView
as following:PopupDialogContainerView.appearance().cornerRadius = 14
What did you expect to happen?
Code is compiled fine and corner radius shown as defined.
What happened instead?
Code haven't been compiled with compile error
Ambiguous use of 'cornerRadius'
Any solutions, you suggest
I figured out the problem. I'm already defined a
cornerRadius
property inUIView
extension that lead to this ambiguity.I suggest to define a method that set the corner radius. For example:
Note: This solution is inspired from another solution for similar issue in AssistoLab/DropDown library.