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

Join the Good Gear Guide newsletter!

Error: Please check your email address.

Tags Development toolsapplication developmentsoftwareFacebook

Our Back to Business guide highlights the best products for you to boost your productivity at home, on the road, at the office, or in the classroom.

Keep up with the latest tech news, reviews and previews by subscribing to the Good Gear Guide newsletter.

Joab Jackson

IDG News Service
Show Comments

Essentials

Microsoft L5V-00027 Sculpt Ergonomic Keyboard Desktop

Learn more >

Lexar® JumpDrive® S57 USB 3.0 flash drive

Learn more >

Mobile

Lexar® JumpDrive® S45 USB 3.0 flash drive 

Learn more >

Exec

HD Pan/Tilt Wi-Fi Camera with Night Vision NC450

Learn more >

Lexar® JumpDrive® C20c USB Type-C flash drive 

Learn more >

Lexar® Professional 1800x microSDHC™/microSDXC™ UHS-II cards 

Learn more >

Audio-Technica ATH-ANC70 Noise Cancelling Headphones

Learn more >

Budget

Back To Business Guide

Click for more ›

Most Popular Reviews

Latest News Articles

Resources

PCW Evaluation Team

Michael Hargreaves

Windows 10 for Business / Dell XPS 13

I’d happily recommend this touchscreen laptop and Windows 10 as a great way to get serious work done at a desk or on the road.

Aysha Strobbe

Windows 10 / HP Spectre x360

Ultimately, I think the Windows 10 environment is excellent for me as it caters for so many different uses. The inclusion of the Xbox app is also great for when you need some downtime too!

Mark Escubio

Windows 10 / Lenovo Yoga 910

For me, the Xbox Play Anywhere is a great new feature as it allows you to play your current Xbox games with higher resolutions and better graphics without forking out extra cash for another copy. Although available titles are still scarce, but I’m sure it will grow in time.

Kathy Cassidy

STYLISTIC Q702

First impression on unpacking the Q702 test unit was the solid feel and clean, minimalist styling.

Anthony Grifoni

STYLISTIC Q572

For work use, Microsoft Word and Excel programs pre-installed on the device are adequate for preparing short documents.

Featured Content

Latest Jobs

Don’t have an account? Sign up here

Don't have an account? Sign up now

Forgot password?