You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been trying to modify the AZDialogView's buttons to make them look like the default iOS alert controllers (with a button image in it), but with the gesture-dismissing capabilities of this project. But, I can't customize the button for some reason. Here's my code:
// Configure UIButton styles
dialogController.buttonStyle ={(button, height, position)in// Fill button with color
button.setImage(UIImage(named:"pop"), for:.normal)
button.semanticContentAttribute =.forceLeftToRight
button.titleLabel?.font =UIFont(name:"AvenirNext-Demibold", size:16)
button.layer.masksToBounds = true
}
The text was updated successfully, but these errors were encountered:
@HackShitUp Thanks for bringing up the issue. At the moment the buttons are initialized using the UIButton class without any special sub-classing capabilities. I will add a new property in the future to allow using custom UIButton sub classes.
I've been trying to modify the AZDialogView's buttons to make them look like the default iOS alert controllers (with a button image in it), but with the gesture-dismissing capabilities of this project. But, I can't customize the button for some reason. Here's my code:
The text was updated successfully, but these errors were encountered: