Merge branch 'bugfix/FontLabelAttribute-conversion' into 'develop'

added in model conversion to textStyle

### Summary
The size was not being used in the conversion along with the name. 

So now you either pass in a Style or a Name & Size.

Co-authored-by: Matt Bruce <matt.bruce@verizon.com>

See merge request https://gitlab.verizon.com/BPHV_MIPS/mvm_core_ui/-/merge_requests/1197
This commit is contained in:
Pfeil, Scott Robert 2024-10-04 17:57:09 +00:00
commit d2e841c533

View File

@ -69,6 +69,8 @@ extension LabelAttributeFontModel: VDSLabelAttributeConvertable {
var textStyle: TextStyle?
if let found = style?.vdsTextStyle() {
textStyle = found
} else if let name, let size, let font = UIFont(name: name, size: size) {
textStyle = TextStyle.convert(font: font)
} else if let name, let found = TextStyle(rawValue: name) {
textStyle = found
}