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.
https://developer.apple.com/videos/play/wwdc2016/231/

CloudKit Best Practices
CloudKit keeps app data updated across iOS, macOS, watchOS, tvOS, and the web so you can focus on building your app. Hear best practices from the CloudKit engineering team about how to take advantage of the APIs and push notifications in order to provide your users with the best experience. Learn about the ways Apple apps use CloudKit and how you can apply the same approaches in your app.
Data Detection in Swift

I have a love/hate relationship with regular expressions. I love them because they’re great for examining text to find useful information and, often, to change the text in some way. I hate them because once you get beyond basic matching, they descend into bizarre write-only code that gives me flashbacks to my days writing Perl. In extreme cases they may well endanger the universe. And so we come to one of my recent coding issues: How can I find out if a string contains a valid email address?