The link below has source codeĀ for implementing the genie effect in iOS app,

https://github.com/Ciechan/BCGenieEffect