no message

This commit is contained in:
Peter Iakovlev
2018-02-08 14:21:11 +04:00
parent 8131db136d
commit 2d79df7e75
29 changed files with 904 additions and 242 deletions

View File

@@ -9,6 +9,9 @@ open class ASDisplayNode: NSObject {
preconditionFailure()
}
weak var supernode: ASDisplayNode?
private(set) var subnodes: [ASDisplayNode] = []
open var frame: CGRect {
get {
return self.layer.frame
@@ -55,6 +58,14 @@ open class ASDisplayNode: NSObject {
var isLayerBacked: Bool = false
var clipsToBounds: Bool {
get {
return self.layer.masksToBounds
} set(value) {
self.layer.masksToBounds = value
}
}
override init() {
super.init()
}
@@ -74,11 +85,27 @@ open class ASDisplayNode: NSObject {
}
open func insertSubnode(belowSubnode: ASDisplayNode) {
open func insertSubnode(_ subnode: ASDisplayNode, belowSubnode: ASDisplayNode) {
}
open func insertSubnode(aboveSubnode: ASDisplayNode) {
open func insertSubnode(_ subnode: ASDisplayNode, aboveSubnode: ASDisplayNode) {
}
open func insertSubnode(_ subnode: ASDisplayNode, at: Int) {
}
open func removeFromSupernode() {
}
func recursivelyEnsureDisplaySynchronously(_ synchronously: Bool) {
}
}
func ASPerformMainThreadDeallocation(_ ref: inout AnyObject?) {
}