Search code examples
iosuisearchcontrolleruirefreshcontrol

UIRefreshControl with transparent background above UISearchController


I have implemented a UIRefreshControl with transparent background in a table, and all was working fine until I added a UIRefreshControl, now I can't remove the gray background behind the RefreshControl as shown in the screenshots.

Screenshot

Anybody knows where could be the issue?


Solution

    1. Double-check the background color of the TableView:

    TableView background color

    1. Double-check the background color of the UIRefreshControl itself:

    UIRefreshControl background color