You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have lot of buttons in view controller, I want to change particular button title font name and font size.
If I click on button, I need to change Font name and size.
I added this code in didFinishLaunchingwithOptions,
AVFonts.changeFont( toFont: "Avenir-Heavy")
AVFonts.applyAVFonts()
Then When I clicked on button in ViewController: @IBAction func changeFont(_ sender: Any) {
AVFonts.changeFont( toFont: "Avenir-Light")
AVFonts.applyAVFonts()
}
Its cannot be changed in same ViewController.
Can you please do it this kind of functionalities. Thanks in advance.
In a view controller, when you need to change font of one specific button, use native code to do that.
This AVFONT is generic code methods to update all fonts while view loads in all classes. Not for specific you are using.
Do change font of button in viewWillAppear or button action.
I tried to set particular button title label font name and size but it not working, can you please share me....
The text was updated successfully, but these errors were encountered: