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

bug - PopupDialog resets styling of UITextField #299

Closed rob8861 closed 5 years ago

rob8861 commented 5 years ago

Report

Environment

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

Dependency management

What did you do?

Created a UITextField changed the textfield border to red and thickness to 1 create a basic PopupDialog and invoked it after the popup dialog is dismissed, the border color goes back to white.

What did you expect to happen?

border color should remain Red!

What happened instead?

border color changed to white

Project that demonstrates the issue

it is pretty simple to repro. just throw in a UITextField, change it's border color to red and call the popup dialog.

mwfire commented 5 years ago

Hey there!

I am not able to reproduce this, it works for me in the RatingViewController of the example project.

Make sure to also set borderWidth explicitly, like

commentTextField.layer.borderColor = UIColor.red.cgColor
commentTextField.layer.borderWidth = 1

If you are still experiencing problems, please create a tiny example project showcasing the issue. Thanks!

stale[bot] commented 5 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.