pmusolino / PMAlertController

PMAlertController is a great and customizable alert that can substitute UIAlertController
MIT License
2.53k stars 187 forks source link

Add header view instead image #15

Closed edittler closed 8 years ago

edittler commented 8 years ago

A UIView is more flexible for show dynamic information besides the title and text. The height of header view could be flexible.

Thanks for the great library!

pmusolino commented 8 years ago

Hi @ezeperez26. Are you telling me to insert an UIView, containing the image of header? Right?

Thanks P

edittler commented 8 years ago

Hi, Yes, is more flexible, for example, to add animated view. Also adjusts height automatically with autolayout.

See my implementation of header view and simple animation example in my fork.

Thanks

pmusolino commented 8 years ago

Hi @ezeperez26, sorry for the delay. It's not a bad idea, but i think that we can introduce this change directly in the swift 3 version of PMAlertController. There is a branch for swift 3: https://github.com/Codeido/PMAlertController/tree/swift3 then you can open a pull request on this branch ;)

Thanks -Paolo

hons82 commented 8 years ago

I'd need for an App an Alert with a header view that I can change over time... Basically a progress view

pmusolino commented 8 years ago

Hi @hons82, try to see the forked branch of @ezeperez26. You can find it here: https://github.com/ezeperez26/PMAlertController/tree/header-view and you can use cocoapods to install it. We want to introduce header in the swift 3 branch soon.

pmusolino commented 8 years ago

You can find this enhancement here: https://github.com/Codeido/PMAlertController/commit/09fd2e0de3cdcee0574a91c0e3bbc1a4eac0571b

edittler commented 8 years ago

Great! Thanks!