I’ve mentioned some interesting pull-to-refresh components in the past such as this pull-to-refresh control that plays pong, and another pull-to-refresh component with a functional stargate.
Here’s an open source pull-to-refresh example component allowing the user to play a BreakOut like game while pulling called BreakOutToRefresh from Dominik Hauser.
BreakOutToRefresh uses SpriteKit for the game, and provides a nice example on how to create advanced animations and games in a pull-to-refresh view.
Here’s an animation from the readme showing BreakOutToRefresh in action:
You can find BreakOutToRefresh on Github here.
A nice example showing of a game in pull-to-refresh.
Original article: Example Code: A Pull-To-Refresh Control Providing A Breakout Game On Pulls Using SpriteKit
©2015 iOS App Dev Libraries, Controls, Tutorials, Examples and Tools. All Rights Reserved.
