refactor(ios): remove unused method `invertFrameIfNeeded` (#1102)