Merge branch 'bugfix/atomic_vds_label-fontSize' into 'develop'
added the fontSize as a last resort for vars being set in the Label after fontStyle and fontName. ### Summary Since moving to the new Typography system, we no longer should be accepting fontName/fontSize since you will lose all of the lineHeight/letterSpacing and other special formatting. I added a use-case for when there is only a fontSize given. ### JIRA Ticket https://onejira.verizon.com/browse/CXTDT-533868 Co-authored-by: Matt Bruce <matt.bruce@verizon.com> See merge request https://gitlab.verizon.com/BPHV_MIPS/mvm_core_ui/-/merge_requests/1074
This commit is contained in:
commit
869804cc39
@ -209,6 +209,9 @@ public typealias ActionBlock = () -> ()
|
||||
if let newFont = UIFont(name: fontName, size: fontSize ?? standardFontSize) {
|
||||
font = newFont
|
||||
}
|
||||
} else if let fontSize = viewModel.fontSize {
|
||||
standardFontSize = fontSize
|
||||
font = textStyle.font.withSize(fontSize)
|
||||
}
|
||||
|
||||
if let color = viewModel.textColor {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user