[ios] Refactor Styles configuration #10050

Merged
root merged 1 commit from ios/refactor-styles-configuration into master 2025-01-16 12:02:30 +00:00

1 commit

Author SHA1 Message Date
f400e723c3 [ios] refactor styles to make them type-safe using enums instead of string lit
1. for now the structure is SheetStyle.Global/PlacePage/Font/TestColor...
2. the styles are used by assessing the property
before:
lineView.setStyleAndApply("Divider")
headerTitleLabel.setStyleAndApply("semibold18:blackPrimaryText")

after:
lineView.setStyleAndApply(.global(.divider))
headerTitleLabel.setFontStyle(.semibold18, color: .blackPrimary)

Signed-off-by: Kiryl Kaveryn <kirylkaveryn@gmail.com>
2025-01-16 14:09:58 +04:00