Questions tagged [asyncdisplaykit]

Texture (formerly known as AsyncDisplayKit) is an open source iOS framework built on top of UIKit for creating smooth asynchronous user interfaces.

Texture (formerly known as AsyncDisplayKit) is an open source iOS framework built on top of UIKit that keeps even the most complex user interfaces smooth and responsive.

It allows you to move image decoding, text sizing and rendering, layout, and other expensive UI operations off the main thread, to keep the main thread available to respond to user interaction.

AsyncDisplayKit, as it was originally known, was created by Facebook to power their Paper app. At present it is further developed by Pinterest with a new name called Texture.


Resources

Articles

Videos

114 questions
1
vote
1 answer

How do I show activity indicator for ASNetworkImageNode?

Here is the code that I tried, but when the image has not loaded yet, nothing show up (an animated indicator should show up). What is the best practice of showing the activity indicator? I hooked into the ASNetworkImageNodeDelegate. import…
dickyj
  • 1,830
  • 1
  • 24
  • 41
1
vote
2 answers

How to add headerView like Navigationbar on ASViewController with ASTableNode without NavigationController?

In my application, I do not use the NavigationController, in general. In UITableView I would do so, would add [Self.view addSubview: self.myCustomHeaderView]; But I'm using ASTableNode. If I do something, something similar here: -…
arsenium
  • 571
  • 1
  • 7
  • 20
1
vote
1 answer

How to add section header/footer view when using AsyncDisplayKit?

It seems that currently ASTableNode and ASTableView both lack the support of section header/footer view. I cannot only find a protocol method: - (nullable NSString *)tableNode:(ASTableNode *)tableNode…
xi.lin
  • 3,326
  • 2
  • 31
  • 57
1
vote
0 answers

MKSlidingTableViewCell not supports ASyncDisplayKit

We are using Initially UITableView with MKSlidingTableViewCell now i facing the issue with scrolling. To overcome this i choose ASyncDisplayKit(AS tableview) But these two(MKSlidingTableViewCell, ASCellNodeBlock) are not working in the same…
Satya Ch
  • 71
  • 7
1
vote
2 answers

ASImageNode - Cannot assign to property: 'image' is a get-only property

I'm converting my iOS Project from Swift 2.2 to Swift 3. Everything was going well, but when I tried to set image to an instance of ASImageNode, I got an error that said: "Cannot assign to property: 'image' is a get-only property". Here is my…
mrfour
  • 1,128
  • 12
  • 21
1
vote
1 answer

Simple Cell with AsyncDisplayKit Layout

I'm trying to build the following design with Facebook's AsyncDisplayKit and I have problems building the Cells and the TableHeaderView. Design: Cells: So each Cell has a ASImageNode and a ASEditableTextNode with the following Layout: override…
SaifDeen
  • 862
  • 2
  • 16
  • 33
1
vote
1 answer

Centering node vertically in horizontal ASStackLayout

I'm wonder what is the correct way to center textNode inside vertical ASSStackNode which is inside horizontal ASStackNode without setting any sizes? I've tried different options with ASCenterLayout / ASRelativeLayout around vertical layout,…
1
vote
1 answer

UIImageView+Kingfisher in ASCellNode missing image

I have a CollectionView and whose cells are BubbleNode: ASCellNode. I'm using Kingfisher as my main ImageDownloader and ImageCache. I have an imageView that I wrapped it inside a ASDisplayNode with initWithViewBlock:. init() { // ... …
Alireza
  • 193
  • 2
  • 9
1
vote
1 answer

Is it possible to use UItableViewCell in ASTableView?

It there a way to use both UITableViewCell and ASCellNode in the same UITableView ? I have many cells but only some of them have performance issues and AsyncDisplayKit works very well with them. I'm wondering if I have to convert all my…
Gonzo Oin
  • 369
  • 2
  • 12
1
vote
2 answers

How can I enforce a minimum Height for a ASDisplayNode?

I've done quite a lot of work using AsyncDisplayKit until now and I'm really really happy with it. Unfortunately now I've hit a road block. I can't get a ASButtonNode to have a minimum height (in a ASCellNode if this is important). class…
floriankrueger
  • 2,003
  • 2
  • 16
  • 25
1
vote
2 answers

Using async display kit to scale text ASTextNode

I see there is a class ASTextKitRenderer, but I'm not sure the proper usage of this and how to import it into my swift project. I want to recreate the behavior of minimumScaleFactor of UILabel for ASTextNode
Kevin
  • 1,883
  • 16
  • 23
1
vote
3 answers

AsyncDisplayKit ASButtonNode setTitle not work

I use AsyncDisplayKit write button , and use ASButtonNode , but I can't set title when I use - (void)setAttributedTitle:(NSAttributedString *)title forState:(ASButtonState)state . It can respond action, but without title. Am I worry or something…
leo
  • 91
  • 4
1
vote
2 answers

library not found for -lAsyncDisplayKit

In my project I get the following error in Xcode: library not found for -lAsyncDisplayKit My project was configured with pod. Can anyone help me fix it?
bhautikmewada191
  • 653
  • 1
  • 9
  • 20
1
vote
1 answer

AsyncDisplayKit invalidateCalculatedSize Swift not working

I have an AsyncDisplayNode from Facebook's AsyncDisplayKit framework. When there is a data change in my app, the content of that cell may need to be changed, and I want to signal that change by calling the invalidateCalculatedSize method, which…
arik
  • 28,170
  • 36
  • 100
  • 156
1
vote
1 answer

App Crashes when i add UIImageView to ASCellNode from AsyncDisplayKit

I am using Facebook's AsyncDisplayKit to create a CollectionView such that CollectionView is ASCollectionView and i am trying to add UIKit's UIImageView in the cell.I get following crash: *** Terminating app due to uncaught exception…
Krati Jain
  • 368
  • 2
  • 10