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
0
votes
1 answer

AsyncDisplayKit / Texture: No visible @interface for 'ASDiplayNode' declares the selector 'nodeViewDidAddGestureRecognizer'

AsyncDisplayKit / Texture is giving me a lot of errors. Using v2.3.2 of Texture in Xcode 8.2.1. It gives me this error right after doing 'pod install' or 'pod update' and opening the workspace. _ASDisplayView.mm:243:26: No visible @interface for…
Benny G
  • 101
  • 7
0
votes
2 answers

How do I set the title on an AsyncDisplayKit ASButtonNode?

I can set the title for the normal state with this: let buttonTitle = NSAttributedString(string: "Book", attributes: attributes) buttonNode.titleNode.attributedText = buttonTitle However this doesn't set the title for the button's disabled state.…
Justin Vallely
  • 5,932
  • 3
  • 30
  • 44
0
votes
1 answer

How to create a frame for AsTableNode in AsyncDisplayKit?

I used facebook's AsyncDisplayKit to run my project, Where I found a sample project named "ASDKgram". It uses Nodes instead of TableViewCells. By default, the 'AsTableNodes' aka TableView are displayed to the bounds of the screen. I want my…
fAiSaL
  • 754
  • 1
  • 10
  • 29
0
votes
1 answer

AsyncDisplayKit AsViewController and swift 3

trying to use AsyncdisplayKit for the 1st time in swift 3. There is something that i do not understand : i simply set up my ASviewController : final class NodeFeedViewController: ASViewController, ASTableDataSource,…
user2206906
  • 1,310
  • 2
  • 13
  • 18
0
votes
1 answer

AsyncDisplayKit calculateLayoutThatFits() function works in 1 project, not in another

I'm doing this asyncDisplayKit tutorial for a collection view of images. http://www.tekramer.com/improving-uicollectionview-uitableview-scrolling-performance-with-asyncdisplaykit/ I can run the finished project and everything works fine. I copied…
Wayne Filkins
  • 494
  • 6
  • 20
0
votes
1 answer

Async call in nodeBlockForRowAtIndexPath

I'm using Async in my IOS app and need a fluid scroll for the CollectionView so i'm trying to use ASyncDisplayKit that seems to be made to have smooth scroll. All the samples are made in ObjectiveC, i would like to translate this part of code: -…
Cris
  • 12,124
  • 27
  • 92
  • 159
0
votes
3 answers

Realm in AsyncDisplayKit causes Termination - realm::IncorrectThreadException

I'm using RealmSwift with AsyncDisplayKit, I'm getting this error all the time from ASDataController.mm: libc++abi.dylib: terminating with uncaught exception of type realm::IncorrectThreadException: Realm accessed from incorrect thread. I have…
Alireza
  • 193
  • 2
  • 9
0
votes
1 answer

ASCollectionNode full-width layout for CellNode

I want to make cells full-width in ASCollectionNode, but I'll get CellNodes sized by content. I have implemented layoutSpecThatFits:. See the image
Alireza
  • 193
  • 2
  • 9
0
votes
1 answer

How to release NSTimer in ASCellNode

I create a NSTimer in ASCellNode, when ASTableView's UIViewController pop, but the timer not be released. _timer = [NSTimer scheduledTimerWithTimeInterval:3.0 target:self selector:@selector(autoScrollBanner) userInfo:nil repeats:YES]; [[NSRunLoop…
maple
  • 101
  • 1
  • 13
0
votes
2 answers

layoutSpecThatFits is not called when a node is added to child node

Here's a simple subclass of ASDisplayNode whose content is just 2 ASTextNode stacked on top of each other. If the secondary string is not present, I want just a single centered ASTextNode in the ASDisplayNode I can layout the elements fine if I…
Kevin
  • 1,883
  • 16
  • 23
0
votes
2 answers

AsyncDisplayKit - ASButton Size

Table Cell I'm learning to use Asyncdisplaykit. My result is in picture below. But I don't know how to constraint button equal Screen.width/3, Its auto constraints equal image width. This is my code let controlStack =…
0
votes
1 answer

signal sigabrt error: Assertion failure in -[_ASDisplayLayer setNeedsLayout]

I need help with the above-mentioned error. My project is using AsyncDisplayKit and I am getting the error above in the _ASDisplayLayer.mm file line 104 in the method - (void)setNeedsLayout { ASDisplayNodeAssertMainThread();//line 104 where…
saintjab
  • 1,626
  • 20
  • 31
0
votes
1 answer

AsyncDisplayKit Image Display Blinks

I'm trying to combine between facebook's AsyncDisplayKit and DMLazyScrollView. When moving to next/previous image, view blinks as seen here: Without the AsyncDisplayKit, this problem doesn't occur. Here's the part of the code that is in charge of…
Itai Spector
  • 652
  • 11
  • 24
0
votes
1 answer

AsyncDisplayKit Layout - how to enforce a maximum height (or width)

I'm trying to enforce a maximum height for an element and I can't figure out exactly which LayoutSpec can help me do that. It seems like the sizeRange property is what I would expect to work but that appears to work only with ASStaticLayoutSpec,…
Ethan
  • 486
  • 1
  • 6
  • 15
0
votes
1 answer

ASCollectionView and ASCellNode in Swift

I am trying to use AsyncDisplayKit to load images into my app. I am creating my collection view as an ASCollectionView, like so, in the viewDidLoad: let layout = UICollectionViewFlowLayout() layout.itemSize = CGSize(width: 90, height: 90) …
jjjjjjjj
  • 4,203
  • 11
  • 53
  • 72