I would check the last modified field in the HTTP header.
The steps would be as follows :
-
Check the current modified field for a webpage.
-
Store that date into a variable or persist it somewhere.
-
At a future date check the webpage’s last modified field once more.
-
Compare the old value to the new value, if the values aren’t equal then the webpage has been modified.
Check out this link : Getting Header Response in Swift you will find how to view the http header of a given URL in Swift.
solved Checking a website for an update in Swift? [closed]