How to Unit Test Network Code in Swift

Testing network I/O code without accessing the backend is not easy. Here is how you can mock the backend by injecting code into the URL Loading System… Read more

Similar

Interview with Swift Creator Chris Lattner

You asked, he answered! The creator of Apple's Swift programming language (and a self-described "long-time reader/fan of Slashdot") stopped by on his way to a new job at Tesla just to field questions from Slashdot readers. Read on for Chris's answers...

Read more »

Nesting Property Wrappers in Swift

You can nest property wrapers in Swift, but it's difficult. NSHipster has a great article about all things property wrappers, and the summary of trying to compose them (which others have echoed) is that it's hard and prone to compiler errors... (more…)

Read more »