I’ve started working a lot more with Swift Structs, especially as I’m learning more about functional programming. I remember when Swift first came out, I was super confused about why the compiler made me insert the “mutating” keyword for my functions in structs. However, now after reading a bunch about value vs reference types, it’s starting to make a lot of sense.
A few days ago, I wrote about how to do dependency injection in Swift using the default XCTest framework. However, I’ve actually been working a lot with Quick to do my unit testing in Swift. So today, I want to walk through how to write some ViewController tests with Quick...
As I’ve been learning functional programming to become better at Swift, one concept that consistently comes up (at least in Haskell, which is what I’ve been focusing on), is tail recursion. It sounds scary at first, but it makes a lot of sense for iterating over finite lists.
One of the harder topics for me to understand in testing is definitely dependency injection. However, after writing a bunch of tests last year, I think I finally have a handle on it, and would like to share what I learned.
Recently I pointed out a better way to test optionals using XCTAssertNotNil. So as I’ve been writing a lot more tests recently, I decided to try this way out. But I soon ran into a problem...
In the beginning of December, I attended (and spoke at) the Functional Swift Conference in New York. It was honestly one of the best conferences I’ve been to in a while, and also the hardest one I’ve had to speak at! I went back home more excited about Swift and my work than ever.
This morning I woke up to find a very exciting tweet from @almassapargali...
The more I Swift code I write, the more I'm realizing I need to understand Functional Programming a lot better. So this holiday season, I'll be reading a few books on the subject, and figuring out how to apply functional principles to my Swift and iOS code.
In XCode 6.2 Beta 2, Apple has introduced the ability to open your iOS application from your Watch App. At the moment when the iOS Application gets the WatchKit extension request, it can also send back a reply to the Watch App. This is the part of WatchKit I’ve been playing with for the past day.
The most exciting part of yesterday’s XCode 6.2 Beta 2 release was the new added ability to open the iOS app from the Apple Watch and even pass information while doing so! It’s super easy to do.