Closed bmichotte closed 8 years ago
Hi @bmichotte, thank you for your contribution, but i think that all this implementation is not necessary, because there is the possibility to access to the stackview and change the axis (vertical or horizontal). In this way the popup as a default behavior, but if you want you can change the axis.
Thanks -Paolo
Hi @Codeido, my first attempt was to use the stackview directly. There's only one problem with this which is that alertStackViewHeightConstraint
is private, so if we want to use your constraint, it's not possible. Could you at least mark this var public ?
@bmichotte thanks for the suggestion. I updated the library and now alertStackViewHeightConstraint is public. From now you can use the release 1.0.5.
Thanks -Paolo
Thanks @Codeido
Hi there !
Sometimes, the label for your button is too long to be displayed correctly, which results in something like this
This PR add a new parameter in the
init
:orientation
. This parameter have the typePMAlertControllerOrientation
which have the following values :Default
(this is the default value) -> The buttons will be show as for now (horizontally if 1 or 2 buttons, vertically if more than 2 buttons)Vertical
-> force the buttons to be shown verticallyHorizontal
-> force the buttons to be shown horizontallyExample:
which will be displayed like this