# Chapter 9 test refreshData beginsRefreshing fails on iOS 17

**URL:** <https://forums.kodeco.com/t/chapter-9-test-refreshdata-beginsrefreshing-fails-on-ios-17/200447>\
**Category:** iOS Test Driven Development by Tutorials\
**Created:** [December 12, 2023, 11:06pm UTC](https://forums.kodeco.com/t/chapter-9-test-refreshdata-beginsrefreshing-fails-on-ios-17/200447 "2023-12-12T23:06:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rustyobject](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/rustyobject/32/109131_2.png) [@rustyobject](https://forums.kodeco.com/u/rustyobject)\
**Post date:** [December 12, 2023, 11:06pm UTC](https://forums.kodeco.com/t/chapter-9-test-refreshdata-beginsrefreshing-fails-on-ios-17/200447/1 "2023-12-12T23:06:58Z")

</div>

Chapter 9 test\_refreshData\_beginsRefreshing() fails on iOS 17  
iOS 17 changes the way UIRefreshControl behaves. Calling beginRefreshing fails if view is off screen, which is the case in the unit Test.

Therefore test\_refreshData\_beginsRefreshing will always fail.  
see below for typical warning received if view is offscreen and beginRefreshing is called.  
**2023-12-13 11:41:19.939174+1300 DogPatch[5654:174183] [RefreshControl] A UIRefreshControl received offscreen beginRefreshing. Ignored. Break on**
