Fix the Initialization Hierarchy (#3207)

* Fix the initializers setup

* Update Swift example

* Remove incorrect comment

* Add one to ASTableNode
This commit is contained in:
Adlai Holler
2017-03-28 11:48:20 -07:00
committed by GitHub
parent 27c94069ae
commit fcbbea51a6
10 changed files with 84 additions and 88 deletions

View File

@@ -55,7 +55,10 @@ final class SpinnerNode: ASDisplayNode {
}
override init() {
super.init(viewBlock: { UIActivityIndicatorView(activityIndicatorStyle: .Gray) }, didLoadBlock: nil)
super.init()
setViewBlock {
UIActivityIndicatorView(activityIndicatorStyle: .Gray)
}
// Set spinner node to default size of the activitiy indicator view
self.style.preferredSize = CGSizeMake(20.0, 20.0)