I have an application that uses "_placeholderLabel" UITextField property and changes to UILabel adjust UILabel Font size according to the given width. I am attaching below code that works for all iOS lower than 13 but for iOS 13 it crashing while fetching the _placeholderLabel property.
if #available(iOS 13.0, *)
{
/// iOS 13 code for adjust fonts
} else {
(txtSearchField.value(forKey: "_placeholderLabel") as! UILabel).adjustsFontSizeToFitWidth = true
}