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
0 answers

Sorting or reordering OrderedDictionary = [:] on ASCollectionNode - swift not working

Trying to sort OrderedDictionary - the format = var OrderedDictionary = [:], on a ASCollectionNode but not working. I tried using. but still no success. please I need your help. self.OrderedDictionary.sort(by: { (f1, f2) -> Bool in …
0
votes
1 answer

Is there a way to insert new items while loading more on ASCollectionNode Horizontal Scrolling

I'm using ASCollectionNode horizontal scrolling and I'm trying to archive a scroll left to load more and insert items.but when I reach to the last item on the left the items are been inserted on the left instead of Right. I implemented the insert…
0
votes
1 answer

Index out of Range exception when using firebase database and storage to download data

Here is my method to retrieve an array of user and post objects from the database. func getRecentPost(start timestamp: Int? = nil, limit: UInt, completionHandler: @escaping ([(Post, UserObject)]) -> Void) { var feedQuery =…
0
votes
1 answer

AsyncDisplayKit: size to fit not working for short text

I am using AsyncDisplayKit for creating my layouts. From the image below, I can't figure out why the RepliedChatView at the top doesn't stretch to the end for short text but works fine on a long/multiline text. How can I fix this? override public…
SimpuMind
  • 365
  • 8
  • 22
0
votes
1 answer

Texture ASTextNode border and shadow attributes do not work

Here is my code, I put one ASTextNode on my super view and applied some attributes, but some of them do not work, such as ASTextBorder. CGFloat top = 10; CGFloat bottom = -1; UIEdgeInsets insets = UIEdgeInsetsMake(top, -10, bottom,…
bolizhou
  • 1,208
  • 1
  • 13
  • 31
0
votes
1 answer

Not able to build my project in simulator, Xcode 10

I am facing a strange issue: I updated Texture to 2.7 in Pods And I am using Xcode 10. The issue is that I am able to build the project successfully in iPhone real device. But its not building in simulator. The following error is…
Nishu_Priya
  • 1,251
  • 1
  • 10
  • 23
0
votes
1 answer

How to add and display new subnode on button tap?

I have ASViewController with root node. In init I add some nodes. I need to display new node after button tap. How I can do it?
0
votes
0 answers

How to overlay two ASButton(absolute position) to ASCollectionNode?

Struct: ASScrollNode(Stack vertical layout) ASCollectionNode(without layoutSpecThatFits) ASButtonNode, ASButtonNode (absolute position) I want the buttons to be displayed on ASCollectionNode (and not moved when scrolling the collection). How…
0
votes
1 answer

How do I change the position of the button after initialization?

I have ASViewController. In init() I set into display node new node with ASAbsoluteLayoutSpec which contains two button. How I can change button position during ASViewController lifecycle?
0
votes
1 answer

ASNetworkImageNode gif not loading

I am creating custom node to show gif file with play and pause button. Following is my code. import Foundation import AsyncDisplayKit class GifNode: ASCellNode { var gifImageNode:ASNetworkImageNode = { let node = ASNetworkImageNode() …
0
votes
1 answer

Why ASTextNode not displaying?

I can not understand why the text is not displayed import UIKit import AsyncDisplayKit class ViewController: ASViewController { init() { super.init(node: ASDisplayNode()) let text = ASTextNode() let attrs = [NSAttributedStringKey.font:…
0
votes
1 answer

ASViewController show empty table

I have following controller class CategoriesViewController: ASViewController, CategoriesViewProtocol { override init(nibName: String?, bundle: Bundle?) { super.init(node: ASTableNode()) } required init?(coder…
Alexey K
  • 6,537
  • 18
  • 60
  • 118
0
votes
1 answer

Using Texture (ASyncDisplayKit) in cells

I'm trying to align components of my cell, but it doesn't work as should. I believe, I just don't understand some simple ideas behind ASLayoutSpec, so I'd appreciate any help here. I have a cell (ASCellNode, of course) that consists of ASTextNode…
lithium
  • 1,272
  • 1
  • 14
  • 28
0
votes
0 answers

Changing attributedText value of ASTextNode makes parent node flash

I'm changing an existing project to AsyncDisplayKit/Texture. I just got to the last part of my new ASTableNode, where I've encountered a bug. In my ASTableNode, there's a ASTextNode. Now after I receive a notification I try to change the…
sushibrain
  • 2,712
  • 5
  • 33
  • 62
0
votes
1 answer

Does AsyncDisplayKit have an alternative for viewForHeaderInSection?

I'm converting an existing app into AsyncDisplayKit/Texture. I just converted a UITableView to an ASTableNode, however, the UITableView relies upon viewForHeaderInSection. However, I was unable to find a delegate method in AsyncDisplayKit's…
ilikecode
  • 391
  • 3
  • 14