how can change text - alignment to the left in UIAlertAction in swift
I think that you can't make this using default UIAlertController.
But you can try to use custom framework, like OKAlertController.
It has extended customisation
https://github.com/OlehKulykov/OKAlertController
UIAlertController not displaying text in center when RTL switch in iOS
The problem is that this line is totally illegal:
alert.setValue(messageText, forKey: "attributedMessage")
You are working behind the runtime’s back. Your results will be unpredictable, and your app might be rejected from the App Store.
If you want control over formatting that UIAlertController doesn’t give you, don’t use UIAlertController. Make a real view controller instead.
Related Topics
Get Advertisement Data for Ble in iOS
Calling Uiviewcontroller Method from App Delegate
Proportional Height (Or Width) in Swiftui
Swift Failed with Exit Code 1 While Compiling in Xcode - Possibly Related to Bridging-Headers
Use Uibarbuttonitem Icon in Uibutton
Showing a Uipickerview with Uiactionsheet in iOS8 Not Working
Non Power of Two Textures in iOS
How to Use Crashlytics with iOS/Os X Today View Extensions
Url Scheme "Open Settings" iOS
Open Target="_Blank" Links Outside of Uiwebview in Safari
iOS Find Color at Point Between Two Colors
Does Non-Renewing Subscription Requires a Restore Button
Allowing Single Digit in Uitextfield in iOS
How to Create and Save Ekcalendar on iOS 6
Move a View When Scrolling in Uitableview
Uipopovercontroller Dealloc Reached While Popover Is Still Visible
How to Push Two View Controllers But Animate Transition Only for the Second One