KyoheiG3 / SimpleAlert

Customizable simple Alert and simple ActionSheet for Swift
MIT License
398 stars 45 forks source link

How can I change font of title in alert controller? #25

Closed nalogowiec closed 6 years ago

nalogowiec commented 8 years ago

I'm trying to modify the font of the title in alert controller. This is how I create it:

`let alertController = AlertController(title: nil, message: "this could have some fancy font", style: .actionSheet)`

I know I can change the color of this font by:

    `alertController.view.tintColor = orangeColor`

but what about custom font?

KyoheiG3 commented 7 years ago

Hi @nalogowiec You can use configureContentView function. It's available as function or closure. Please see an example.