Skip to content
This repository was archived by the owner on Feb 2, 2023. It is now read-only.

Commit 90af0d3

Browse files
Update README.md
1 parent 2ff683b commit 90af0d3

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -61,16 +61,16 @@ In Swift:
6161
6262
```swift
6363
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0) {
64-
let node = ASTextNode()
65-
node.attributedString = NSAttributedString(string: "hello")
66-
node.measure(CGSize(width: screenWidth, height: CGFloat.max))
67-
node.frame = CGRect(origin: CGPointZero, size: node.calculatedSize)
64+
let node = ASTextNode()
65+
node.attributedString = NSAttributedString(string: "hello")
66+
node.measure(CGSize(width: screenWidth, height: CGFloat.max))
67+
node.frame = CGRect(origin: CGPointZero, size: node.calculatedSize)
6868
69-
// self.view isn't a node, so we can only use it on the main thread
70-
dispatch_async(dispatch_get_main_queue()) {
71-
self.view.addSubview(node.view)
72-
}
73-
}
69+
// self.view isn't a node, so we can only use it on the main thread
70+
dispatch_async(dispatch_get_main_queue()) {
71+
self.view.addSubview(node.view)
72+
}
73+
}
7474
```
7575

7676
AsyncDisplayKit at a glance:

0 commit comments

Comments
 (0)