Post

Replies

Boosts

Views

Activity

Comment on JSON parsing from a static JSON file into the label
Is it possible? Depends on the server side. With URLSession.dataTask, only the latest data is loaded, only once at the time of call. You may need to find if there is some functionality to tell you when it changes. Or you may need to repeat calling the API. In the latter case, remaining of NowPlaying will give you a good hint when to load again.
Sep ’21
Comment on Date in Swift printed is wrong
Seems your expectation is wrong. As you were told in another thread of yours, Date is a locale/timeZone-independent representation of sort of absolute date & time. Its default String representation uses UTC as you found. If you want some timeZone specific date, you need String representation of Date using DateFormatter or use DateComponents, not Date.
Sep ’21