Fixed some warnings in the demo app.

Renamed the deprecated `layoutWithSpeed:` with `layoutWithDuration:`.