Could you please help me getting the string format which we use to create custom UIFont.TextStyle?. UIFont.TextStyle(rawValue: String)

I want to create a object of UIFont.TextStyle using TextStyle

(rawValue: String)
which requires some string, But, I don't the string format here.

Replies

This doesn't quite make sense. What text style do you want?


If you're using one of the known text styles, you don't have to create an object, you can just use UIFont.TextStyle.bold or whatever.


If you're using a custom style, what string does your custom "consumer" of the style require?

I just want to know what actual argument TextStyle

(rawValue: String)
takes as a String?