iOS dev
10.7K subscribers
12 photos
5 files
6.09K links
There is a single sponsored link in each issue (monday).
One sponsor per issue.
Every sponsored link should be highly relevant to Apple ecosystem app development.
Sponsored link price - 100$
Contact: @tigorn
Download Telegram
https://useyourloaf.com/blog/swift-codable-with-custom-dates/

Swift Codable With Custom Dates
How do you decode a JSON feed that has several custom date formats? If you are lucky using a dateDecodingStrategy might be enough. Unfortunately it has limited support for the .iso8601 format and you can only set one strategy at a time so it does not help when you have two or more different date formats.
https://useyourloaf.com/blog/urlsession-waiting-for-connectivity/

If you use URLSession to start a task with iOS 10 and the network is not available the connection fails at once with an error. There was a small change in iOS 11 that means you can now tell your URLSession to wait until network connectivity is available before trying the connection.