Open idokleinman opened 8 years ago
Hi @idokleinman . I also wanted to translate the implementation to Swift.
I took a look to the Objective-c code and I found out this:
NSString *fontName = [current valueForKey:@"titleFontName"];
if (fontName != nil) {
[self.titleLabel setFont:[UIFont fontWithName:fontName size:fontSize]];
} else {
[self.titleLabel setFont:[UIFont boldSystemFontOfSize:fontSize]];
}
So I just added the parameter titleFontName to the TSMessagesDefaultDesign file and it worked for me. The name for the Subtitle text font is contentFontName
It works just like the other parameters do.
this does not translate to Swift:
couldn't set notification font in Swift. Any advice?