CooperRS / RMActionController

This is an iOS control for presenting any UIView in an UIAlertController like manner
MIT License
539 stars 59 forks source link

Is there a way to have sharp corners instead of rounded ones? #27

Closed slobodanantonijevic closed 7 years ago

slobodanantonijevic commented 7 years ago

Love the library, but I have a project where I need flat design with sharp corners and no border width (padding) are there any properties that I am missing to achieve this?

Cheers

CooperRS commented 7 years ago

Hi there!,

Right now this is not possible. But it should be easy to implement. Take a look at -[RMActionController setupContainerElements]. In line 248 and 258 the corner radius is set. In addition, in -[RMActionController setupConstraints] the padding is set up. You just need to change these values to 0 and you are done.

Feel free to make a PR out of it! 😃