Added function getCurrentViewport

this function will return the current viewport of the ios device