Menu
Facebook opens smooth scrolling Paper framework for iOS

Facebook opens smooth scrolling Paper framework for iOS

Facebook's AsyncDisplayKit could be just the remedy to solve a complex app's scrolling difficulties

The framework that powers Facebook's Paper content presentation app is being made publicly available to help developers create Apple iOS apps that scroll more smoothly.

The AsyncDisplayKit can be used to build a graphical interface for iPhones and iPads that scrolls and transitions between different views more smoothly than those developed using most standard interface frameworks, said Nadine Salter, a Facebook iOS engineer involved in the project.

AsyncDisplayKit would be particularly useful for building complex applications "where traditional performance optimization approaches have been unable to achieve smooth interactions, or where developers spend a lot of time and effort trying to keep performance in an acceptable range," Salter said via email.

In addition, apps that require gestural interfaces or use physics-based animations would also benefit from the framework, Salter noted.

Ideally, a mobile app interface should be able to achieve a responsiveness of 60 frames per second to enable smooth scrolling, swift response to touch and fluid physics simulations.

Traditional view frameworks for iOS, such as UIKit, can take hundreds of milliseconds to size and display their content, blocking other operations while doing so, which in turn can cause a choppy responsiveness for users. Developers have found ways around the limitation, though mostly through laborious hand-writing of code or by assembling a variety of discrete components.

As its name suggests, AsyncDisplayKit runs asynchronous, or multiple parallel, operations, without blocking other operations on the device, such as scrolling.

The framework was written in Objective-C, but it can be easily used with Apple's new Swift programming language. An experienced iOS engineer should be able to start using the framework within a few hours and within a few days of study could understand the "the full depth of its capabilities," Salter wrote.

AsyncDisplayKit was developed for Paper, a highly tactile iPhone application Facebook released in February for viewing content such as newspaper articles or Facebook feeds. This is not the first piece of Paper that Facebook has open-sourced for others to reuse and modify. In April, Facebook released as open source the Paper Pop animation engine.

Joab Jackson covers enterprise software and general technology breaking news for The IDG News Service. Follow Joab on Twitter at @Joab_Jackson. Joab's e-mail address is Joab_Jackson@idg.com

Follow Us

Join the New Zealand Reseller News newsletter!

Error: Please check your email address.

Tags Development toolsapplication developmentsoftwareFacebook

Featured

Slideshows

Arrow exclusively introduces Tenable Network Security to A/NZ channel

Arrow exclusively introduces Tenable Network Security to A/NZ channel

Arrow Electronics introduced Tenable Network Security to local resellers in Sydney last week, officially launching the distributor's latest security partnership across Australia and New Zealand. Representing the first direct distribution agreement locally for Tenable specifically, the deal sees Arrow deliver security solutions directly to mid-market and enterprise channel partners on both sides of the Tasman.

Arrow exclusively introduces Tenable Network Security to A/NZ channel
Examining the changing job scene in the Kiwi channel

Examining the changing job scene in the Kiwi channel

Typically, the New Year brings new opportunities for personnel within the Kiwi channel. 2017 started no differently, with a host of appointments, departures and reshuffles across vendor, distributor and reseller businesses. As a result, the job scene across New Zealand has changed - here’s a run down of who is working where in the year ahead…

Examining the changing job scene in the Kiwi channel
​What are the top 10 tech trends for New Zealand in 2017?

​What are the top 10 tech trends for New Zealand in 2017?

Digital Transformation (DX) has been a critical topic for business over the last few years and IDC is now predicting a step change as DX reaches macroeconomic levels. By 2020 a DX economy will emerge and it will become the core of what New Zealand industries focus on. From the board level through to the C-Suite, Kiwi organisations must be prepared to think and act digital when the DX economy emerges in 2017.

​What are the top 10 tech trends for New Zealand in 2017?
Show Comments