added the base iOS functionality and an example useage on a window