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://github.com/apple/swift/blob/master/docs/CompilerPerformance.md

This document is a guide to understanding, diagnosing and reporting compilation-performance problems in the swift compiler. That is: the speed at which the compiler compiles code, not the speed at which that code runs.

While this guide is lengthy, it should all be relatively straightforward. Performance analysis is largely a matter of patience, thoroughness and perseverance, measuring carefully and consistently, and gradually eliminating noise and focusing on a signal.
http://ericasadun.com/2016/07/18/dear-erica-no-case-enums/

Dear Erica, Why would you create an enum with no cases?
This is such a great question! No-case enumerations represent a fairly obscure Swift “power tool”, and one that most developers are unaware of.
https://github.com/quicktype/quicktype-xcode

quicktype infers types from sample JSON data, then outputs strongly typed models and serializers for working with that data in Swift, C++, Obj-C++, Java and more. This extension adds native quicktype support to Xcode 9.
https://useyourloaf.com/blog/swift-non-nil-values-in-an-array-of-optionals/?utm_campaign=Revue%20newsletter&utm_medium=Newsletter&utm_source=Swiftly%20Curated

I find it hard to remember the different ways you can use case with Swift beyond the familiar switch. Here is one useful example for when you need to do something with the non-nil values in an array of optionals...