2020-02-13 02:54:02 +01:00

31 lines
670 B
Swift

import Foundation
import UIKit
import AsyncDisplayKit
open class ASImageNode: ASDisplayNode {
public var image: UIImage? {
didSet {
if self.isNodeLoaded {
self.contents = self.image?.cgImage
//(self.view as? ASImageNodeView)?.image = self.image
}
}
}
public var displayWithoutProcessing: Bool = true
override public init() {
super.init()
/*self.setViewBlock({
return ASImageNodeView(frame: CGRect())
})*/
}
override open func didLoad() {
super.didLoad()
//(self.view as? ASImageNodeView)?.image = self.image
}
}