This works fine. Now i need to get the content back when device is offline. I am new in swift. May be It can be done from startLoading() method. Can you please help me ? Question : https://stackoverflow.com/questions/46740581/uiwebview-load-url-and-save-cache-for-offline-issue-in-ios-swift-3