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