mirror of
https://github.com/divkit/divkit.git
synced 2026-06-06 20:07:59 +00:00
18 lines
284 B
Swift
18 lines
284 B
Swift
import LayoutKit
|
|
import VGSL
|
|
|
|
public enum CardIDTag {}
|
|
public typealias DivCardID = Tagged<CardIDTag, String>
|
|
|
|
extension DivCardID {
|
|
var path: UIElementPath {
|
|
UIElementPath(rawValue)
|
|
}
|
|
}
|
|
|
|
extension UIElementPath {
|
|
var cardId: DivCardID {
|
|
DivCardID(rawValue: root)
|
|
}
|
|
}
|