sberrevoets / SDCAlertView

The little alert that could
MIT License
1.86k stars 298 forks source link

Setting tintColor on the alert.view affects contentView #263

Closed ghost closed 6 years ago

ghost commented 6 years ago

There is a weird behavior in regards to setting tintColor on alert.view. It being set before contentView is configured - contentView doesn't show up at all. To reproduce - in Example app - add alert.view.tintColor = .red before line 55 of DemoViewController spinner doesn't show. If this line added after contentView adding spinner - everything is fine.

sberrevoets commented 6 years ago

Yeah this is not surprising because when the view is loaded the entire alert is being built up and mostly immutable at that point. I recommend not accessing the view until after the alert is fully configured.

ghost commented 6 years ago

Ok.. make sense.