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

UIPanGestureRecognizer in Texture/AsyncDisplayKit's ASCellNode prevents the table from scrolling

I am using the Texture/AsyncDisplayKit library: https://github.com/texturegroup/texture I am trying to implement "swipe to perform action" in a ASCellNode. The problem is that the UIPanGestureRecognizer prevents the table from scrolling. I am able…
0
votes
0 answers

Texture/AsyncDisplayKit ASDisplayNode preferredSize's width not working

I am very new to Texture/AsyncDisplayKit. I am able to reproduce the issue with this simple code. I basically want to show a 10x10 square at the bottom right of the ASCellNode. I am doing this via a ASDisplayNode which is being set as the corner of…
0
votes
1 answer

How to make ASImageNode size same as image or remove transparent reminder?

If my image bigger than view size, I have empty space inside ASImageNode. Now on a image below, I have empty space from the left and right of content. How I can reduce width of ASImageNode? So basically ASImageNode same size as parent View, but I…
dev2019
  • 49
  • 1
  • 6
0
votes
1 answer

Context Menus with AsyncDisplayKit

I am trying to implement a context menu for a UIImageView, but the issue is this app is not using UITableView, it uses ASTable from AsyncDisplayKit. Has anyone implemented a context menu using that framework? Is there a way to extend UIImageView and…
ShedSports
  • 541
  • 2
  • 7
  • 14
0
votes
1 answer

Texture(AsyncDisplayKit) image flash

I have a viewcontroller inheriting ASDKViewController, the background is set to a picture, when I switch tabs, the picture flashes,how can i fix it? in SceneDelegate: func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options…
Ben
  • 99
  • 2
  • 12
0
votes
1 answer

Can't round corners and have background colour on ASDisplayNode

I am trying to create an ASDisplayNode with rounded corners whilst setting its background colour. However, the corners never appear rounded. Why is this? My code: final class MyNode: ASDisplayNode { init() { self.backgroundColor = .red …
Tometoyou
  • 7,792
  • 12
  • 62
  • 108
0
votes
1 answer

How to wrap a SwiftUI View inside a ASDisplayNode

Today I was trying to figure out a way to interface SwiftUI and Texture (AsyncDisplayKit). That way I get the speed and benefits of AsyncDisplayKit, ASNetworkImage, etc. and the flexibility of SwiftUI and Combine in my detail views.
Mycroft Canner
  • 1,828
  • 1
  • 11
  • 24
0
votes
1 answer

How to implement the ListCollectionViewLayout while using Texture?

I have been having trouble getting the ListCollectionViewLayout, the stock layout provided by IGListKit, to work together with Texture (formerly AsyncDisplayKit). This is my Collection View Controller: let collectionNode: ASCollectionNode! var…
0
votes
1 answer

How to set the ratio of a child ASNetworkImageNode

I have a ASViewControllerthat renders an ASTableNode. I'd like to use an ASNetworkImageNode in each row to render an image. I know the width / height so am able to set the ratio correctly. As such I am using ASRatioLayoutSpec on the image. The issue…
Tim J
  • 1,211
  • 1
  • 14
  • 31
0
votes
1 answer

Swift Readjust / Resize layout (ASDisplayNode) on show hide of the children node

I new to AsyncDisplayKit. So, I create a new app to learn AsyncDisplayKit animationTransition based on my real project code. The show / hide animation works perfect, but i dont know why the parent node (ASDisplayNode) is not readjusting the layout…
Redha Putra
  • 15
  • 1
  • 6
0
votes
2 answers

How can I properly add nodes in an ASCellNode using Texture

I am learning AsyncDisplayKit/Texture. I am trying to create an ASTableNode with a custom cell. I am struggling to understand how to properly set and anchor the nodes I create within my ExampleNode. I have tried this override func…
Tim J
  • 1,211
  • 1
  • 14
  • 31
0
votes
1 answer

Recreating Instagram/Pinterest profile - How can I recreate the instagram/pinterest profile in swift?

Currently I am trying to recreate something like the Instagram/Pinterest iOS profile page where you can swipe between sections that have different data and layout while having a header that doesn't scroll horizontally but vertically with each…
0
votes
1 answer

ASButtonNode attributedTitle for different controlStates

I have a problem with ASButtonNode and attributedTitle for different control states and using fractional size. The title becomes shifted to the left. I behaved correctly if I use a point size for the button. I am running texture/asyncDisplayKit…
0
votes
1 answer

TouchUpInside without LinkAttribute in ASTextNode

I have one text (ASTextNode) let contentNode = ASTextNode() contentNode.maximumNumberOfLines = 7 contentNode.truncationMode = .byTruncatingTail contentNode.isUserInteractionEnabled = true contentNode.delegate = self and in contentNode have link I…
0
votes
1 answer

Does Texture aka AsyncDisplayKit support PHLivePhotoView?

I am trying to integrate Live Photos into my iOS app and can't seem to figure out how to integrate Live Photos while using Texture. Is there a way to integrate Live Photos with Texture? For instance, an ASImageNode or ASNetworkImageNode is used in…