Matthijs Hollemans has written a tutorial explaining how one can use Swift type’s system to help the compiler catch mistakes and avoid errors at runtime and make programs more expressive and robust.
In the tutorial Matthijs shows how to use the type system to prevent invalid multiplication operations on a Matrix using custom types and protocols.
You can find the tutorial over on Matthijs blog.
A nice guide to utilizing Swift’s type system.
Submit A Resource
Have you created a useful tutorial, library or tool for iOS development that you would like to get in front of our 300,000+ monthly page views from iOS developers?
You can submit the url here.
The resources we feel will appeal to our readers the most will be posted on the front page.