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

Best way for add spacing between and around ASCellNode in ASTableNode?

I`m using AsyncDisplayKit for dev my ios app and using ASTableNode. What is best way for add spacing between ASCellNode in ASTableNode ? I want to make it look something like this: My ideas on how to do this: set the frame size of…
arsenium
  • 571
  • 1
  • 7
  • 20
2
votes
4 answers

How to add gradient to ASDisplayNode or ASButtonNode

I am looking to add a gradient background to an ASDisplayNode/ASButtonNode. I have tried creating a gradient layer and adding it as a sublayer like this - CAGradientLayer *gradient = [CAGradientLayer layer]; gradient.frame =…
Shivam Bhalla
  • 1,879
  • 5
  • 35
  • 63
2
votes
0 answers

Using VideoNode in CollectionView instead of AVPlayer

I have a UICollectionView which displays photos and videos. I was using an AVPlayer to display videos, however this resulted in very choppy scrolling. To combat this I am using the VideoNode from the AsyncDisplayKit. Currently in my cellForItemAt…
Alk
  • 5,215
  • 8
  • 47
  • 116
2
votes
1 answer

How to use scrollView functions with AsyncDisplayKit

I have this function I use on my collection view: func scrollViewWillEndDragging(scrollView: UIScrollView, withVelocity velocity: CGPoint, targetContentOffset: UnsafeMutablePointer){ } It doesn't seem to work now that I have converted over…
Wayne Filkins
  • 494
  • 6
  • 20
2
votes
0 answers

Having issues with significant frame drops on Xamarin

I am currently struggling to achieve building a GUI that is somewhat similar to the Netflix app for iOS (screenshot: https://i.stack.imgur.com/68sVK.jpg). As you can see, it has several horizontal scrollviews with multiple elements in them, all…
2
votes
1 answer

SizeToFit AsyncDisplayKit

My ASTextNod take normally 3 lines but i trancate it from the seconde line. Resultat: my ASTextNod show 2 lines and 3 points of trancate but his height is the height of 3 lines and not 2. I look so for something similar to sizeToFit for ASTextNode.
Amine Arous
  • 635
  • 1
  • 6
  • 13
2
votes
3 answers

How can I use ASTextNode with TTTAttributedLabel

I have built a ASCellNode and it works perfectly. However when I used a traditional UICollectionViewCell I used an TTTAttributedLabel with links. I don't know how should I replicate this with AsyncDisplayKit I can assign the attriubtedText from the…
2
votes
1 answer

Add custom Button with AsyncDisplayKit

I am developing an IOS application. I use Facebook AsyncDisplayKit library. I want to a button in ASNodeCell Bu I got "Variable 'node' is uninitialized when captured by block. How can I add UIButton or UIWebView control in ASNodeCell. Please help…
hiwordls
  • 781
  • 7
  • 17
  • 35
1
vote
0 answers

iOS - Swift: How to hide ASScrollNode vertical scroll indicator in Texture/AsyncDisplayKit

I use Texture to create my new application but I stuck in how to hide the scroll indicator in ASScrollNode while ASScrollNode does not have the showsVerticalScrollIndicator property like in UIScrollView Does anyone know how to do this?
vyppN
  • 57
  • 5
1
vote
0 answers

Manually animate ASDisplayNode Texture (AsyncDisplayKit)

I've been trying to animate ASDisplayNode for a while now, without any real progress. I've read and try lots of examples, including the Texture transition API https://texturegroup.org/docs/layout-transition-api.html. I would like to use a callback…
Tomer
  • 4,382
  • 5
  • 38
  • 48
1
vote
2 answers

Wrapping nested ASStackLayoutSpec with AsyncDisplayKit

Using nested ASStackLayoutSpec with AsyncDisplayKit I am trying to achieve this So I am creating a vertical ASStackLayoutSpec with avatar and another horizontal ASStackLayoutSpec with the user name and timestamp and text override func…
Igor Kulman
  • 16,211
  • 10
  • 57
  • 118
1
vote
1 answer

Incorrect upper and lower line color with UIGraphicsGetCurrentContext

The project uses ASDK (Texture). There is a main node, it has a subnode, under certain circumstances it is necessary to show the outer boundary of the subnode, in this project it is done by adding a border node and UIGraphicsGetCurrentContext, also…
Alexander Khitev
  • 6,417
  • 13
  • 59
  • 115
1
vote
1 answer

ASCollectionNode showsVerticalScrollIndicator is dot work

I use AsyncDisplayKit ASCollectionView, but it's not showsVerticalScrollIndicator = NO, can't work? Who can tell me , thanks self.collectionNode = [[ASCollectionNode alloc] initWithCollectionViewLayout:layout]; self.collectionNode.dataSource…
Kan Tao
  • 19
  • 5
1
vote
1 answer

batch fetching with async display kit / cloudkit

I am trying to implement batch fetching to integrate with cloudkit and async display kit. However, when I try to scroll around, I get this error: [NSOperationQueue addOperation:]: operation is finished and cannot be enqueued' Any idea would this be…
Shekar
  • 240
  • 1
  • 5
  • 14
1
vote
1 answer

Use the ASNetworkImageNode to load the https image ?

I am using HTTP with ASNetworkImageNode to load the image normally and now replace it with HTTPS, my HTTPS is using a self-signed certificate. Using ASNetworkImageNode it can not load. I was wondering how to configure the normal loading of my…
cd_chen
  • 11
  • 2