Orderella / PopupDialog

A simple, customizable popup dialog for iOS written in Swift. Replaces UIAlertController alert style.
http://www.mwfire.de
Other
3.96k stars 522 forks source link

Unable to add shadow to PopupDialog due to ambiguity #374

Closed Yoorque closed 3 years ago

Yoorque commented 3 years ago

Report

Environment

Please provide information on your development environment, so we can build with the same scenario.

Dependency management

If you are not using any dependency managers, you can remove this section.

What did you do?

Trying to add shadow and cornerRadius to PopupDialog by changing PopupDialogContainerView.appearance() let pcv = PopupDialogContainerView.appearance() pcv.backgroundColor = .black pcv.shadowEnabled = true pcv.shadowColor = .green pcv.cornerRadius = 10

What did you expect to happen?

I would expect to be able to modify these values as per README.md file guide: // Customize the container view appearance let pcv = PopupDialogContainerView.appearance() pcv.backgroundColor = UIColor(red:0.23, green:0.23, blue:0.27, alpha:1.00) pcv.cornerRadius = 2 pcv.shadowEnabled = true pcv.shadowColor = .black

What happened instead?

Background color changes as expected, but adding shadow or cornerRadius (or both) throws ambiguity error. "Ambiguous use of 'shadowColor'"