mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
17 lines
354 B
Swift
17 lines
354 B
Swift
public protocol StylingAttributes {
|
|
var style: String? { get set }
|
|
}
|
|
|
|
enum StylingAttributesKeys: String, CodingKey {
|
|
case style
|
|
}
|
|
|
|
public extension StylingAttributes {
|
|
var stylingDescription: String {
|
|
if let style {
|
|
"\(StylingAttributesKeys.style.rawValue)=\"\(style)\""
|
|
} else {
|
|
""
|
|
}
|
|
}
|
|
}
|