Swift Developments is a hand-curated newsletter containing a weekly selection of the best links, videos, tools and tutorials for people interested in designing and developing their own apps using Swift.
This article from @sandofsky really made me think this week and if I’m honest, I’m probably guilty of this more often than I should be. Like alot of things in software development things aren’t exactly cut and dried but Ben’s got some great advice here that’s definitely worth taking on board.
@mattt explores one of Swift’s most familiar statements – the simple
import statement. Whilst you’ll probably be familiar with it’s basic use, there are actually a lot of other aspects to it that you might not be aware of.
Promises can greatly simplify your asynchronous code but how to they work under the hood? @PierreFelgines has written a great introduction, walking you throught the basics of implementing your own
Promise type with tests thrown in.
With so many apps relying on network connectivity for their basic functionality, handling those cases where no network connection is available is critical. In this article, @plivesey453 takes a look at the different options at our disposal.
One of the most common ways of monetising your iOS app is through In-App Purchase. However as soon as money is involved there are inevitably going to who try to use your app or access your in-app purchases without paying. In this tutorial from @bmorefield you’ll learn how receipts validation works on iOS and how you can use receipts to check that a user has actually paid.
With the introduction of Create ML, machine learning on iOS is more accessible than ever before and when combined with the wealth of open source data sets that are now freely available we have everything we need to develop apps that can have a real impact in the world. This tutorial from @ozgr_shn is one such example, combining Create ML and an open source data to detect pneumonia from patient X-rays.
In this weeks article, @johnsundell turns his attention to networking, looking at how we can use functional programming concepts combined with futures and promises to write clean and testable networking code.
The introduction of the Codable protocol in Swift has been a huge boost to developer productivity but when it comes to testing, how much of your Codable code should you test? @paulio87 has some thoughts along with a nice test-driven example covering a custom
As developers we all know the importance of documentation. In this article, Jonathan Samudio shows you how, with a little help from Jazzy, GitHub Pages and Travis CI, you can automatically generate and publish your docs straight from your code.