mirror of
https://github.com/divkit/divkit.git
synced 2026-06-06 20:07:59 +00:00
19 lines
344 B
Swift
19 lines
344 B
Swift
#if os(iOS)
|
|
import DivKit
|
|
import LayoutKit
|
|
|
|
public final class RasterizeExtensionHandler: DivExtensionHandler {
|
|
public let id = "rasterize"
|
|
|
|
public init() {}
|
|
|
|
public func applyAfterBaseProperties(
|
|
to block: Block,
|
|
div _: DivBase,
|
|
context _: DivBlockModelingContext
|
|
) -> Block {
|
|
RasterizeBlock(child: block)
|
|
}
|
|
}
|
|
#endif
|