I have changed one piece of code that now sets the frames of the rootviewcontroller and floatingviewcontroller to that of the stackedviewcontroller's bounds instead of using hard coded values.