mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Fix the Initialization Hierarchy (#3207)
* Fix the initializers setup * Update Swift example * Remove incorrect comment * Add one to ASTableNode
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user