Although I’ve covered HUDs previously, Sam Vermette has done a nice job with his design and implementation. I like Sam’s approach, the methods for displaying and dismissing heads-up-displays are class methods – this is a nice touch in that you don’t need to worry about allocating and releasing objects.
There is an abundance of interesting code in the project, including numerous block animations. Many of the little things Sam has already dialed in – for example, the size of an HUD is dynamically adjusted when displaying text, the longer the text, the wider the view (and support for wrapping text works out of the box).
Below are a few screenshots, the first shows a long message that is wrapped to fit the display:
The images below show two of the options for dismissing messages, one for successful operations, one for error conditions:
You can download SVProgressHUD from github.
Open Source Recommendations ?
Have you written or worked with iOS or Cocoa open source that you think others would find interesting, send me a note.