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

Cool Tech

Crucial Ballistix Elite 32GB Kit (4 x 8GB) DDR4-3000 UDIMM

Learn more >

Gadgets & Things

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

Learn more >

Family Friendly

Lexar® JumpDrive® S57 USB 3.0 flash drive 

Learn more >

Stocking Stuffer

Plox Star Wars Death Star Levitating Bluetooth Speaker

Learn more >

Christmas Gift Guide

Click for more ›

Most Popular Reviews

Latest News Articles

Resources

GGG Evaluation Team

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.

Steph Mundell

LIFEBOOK UH574

The Fujitsu LifeBook UH574 allowed for great mobility without being obnoxiously heavy or clunky. Its twelve hours of battery life did not disappoint.

Andrew Mitsi

STYLISTIC Q702

The screen was particularly good. It is bright and visible from most angles, however heat is an issue, particularly around the Windows button on the front, and on the back where the battery housing is located.

Simon Harriott

STYLISTIC Q702

My first impression after unboxing the Q702 is that it is a nice looking unit. Styling is somewhat minimalist but very effective. The tablet part, once detached, has a nice weight, and no buttons or switches are located in awkward or intrusive positions.

Featured Content

Latest Jobs

Don’t have an account? Sign up here

Don't have an account? Sign up now

Forgot password?