Please provide information on your development environment, so we can build with the same scenario.
Xcode version (e.g. 9.1): 13.0
PopupDialog version (e.g. 0.5.0): 1.1.3
Minimum deployment target (e.g. 9.0): 14.1
Language (Objective-C / Swift): Swift
In case of Swift - Version (e.g. 4): 5.5
Dependency management
If you are not using any dependency managers, you can remove this section.
Dependency manager (e.g. CocoaPods): SPM
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'"
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'"