Is there any way to right allign image in UIAlertAction in UIAlertController action sheet?

Viewed 28

I have managed to left allign text but unable to set image to right in UIAlertAction

let firstAction = UIAlertAction(title: "Text 1", style: .default, handler: { action in
            })
firstAction.setValue(CATextLayerAlignmentMode.left, forKey: "titleTextAlignment")
firstAction.setValue(image, forKey: "image") // this puts image to left by default

I wannt to achieve this To achieve

But so far I have this Current

1 Answers

You need to customize the action sheet by adding a table view to it. This help to add other functionalities too.

Related