Files
babaevmm 6eeb70a71b add rasterize extension
commit_hash:3627f4693042fef98d9561b23f709361b8f9b6e6
2026-04-21 10:51:34 +03:00

32 lines
615 B
Swift

#if os(iOS)
import CoreGraphics
import Foundation
import LayoutKit
import VGSL
final class RasterizeBlock: WrapperBlock, LayoutCachingDefaultImpl {
let child: Block
init(child: Block) {
self.child = child
}
func makeCopy(wrapping block: Block) -> RasterizeBlock {
RasterizeBlock(child: block)
}
func equals(_ other: Block) -> Bool {
guard let other = other as? RasterizeBlock else {
return false
}
return child == other.child
}
}
extension RasterizeBlock: CustomDebugStringConvertible {
var debugDescription: String {
"RasterizeBlock child: \(child)"
}
}
#endif