Storage improvements

This commit is contained in:
Ali
2022-12-24 00:04:48 +04:00
parent dd06922e85
commit 808f5b80ff
25 changed files with 3384 additions and 655 deletions

View File

@@ -321,6 +321,19 @@ public class CheckLayer: CALayer {
self.isOpaque = false
}
public override init(layer: Any) {
guard let layer = layer as? CheckLayer else {
preconditionFailure()
}
self.theme = layer.theme
self.content = layer.content
super.init(layer: layer)
self.isOpaque = false
}
public init(theme: CheckNodeTheme, content: CheckNodeContent = .check) {
self.theme = theme
self.content = content