Natasha The Robot

Currently learning... Swift!

You can follow me on Twitter here.

Subscribe via RSS here.

Subscribe to my Swift newsletter

Swift Access Controls: How To Avoid The ‘Private’ Keyword Repetition

A few weeks ago, I contributed an article about Swift functions in, where I mentioned that I prefer to put all my private functions together at the bottom of my class, separated by a landmark. So I wish there was a way in Swift, like in other languages, to say that all functions below this on are private. In response, @chromophoreapp had the following idea...

iOS: How to Change UITableViewCell’s Selection Color App Wide

As part of your app branding, you might want to use a different selection color for all your tableViewCells! Here is how you can easily do this...

Don’t Miss These Navigation Bar Interactions in iOS8

Have you noticed how nicely the mobile Safari navigation bar condenses on scroll, and how the tab bar disappears? Here are the new navigation bar interactions in iOS8.

iOS8: Where To Remove Observer for NSNotification in Swift

So viewDidUnload has been deprecated as of iOS 6.0, and now dealloc() can no longer be used in Swift-based ViewControllers. This posed a challenge to me this morning as I was working with NSNotifications in my app...

Swift: Using MVVM To Work With Optionals

I’ve recently started using the Model-View-ViewModel pattern a lot more to structure my iOS application code. While MVVM is not necessary in all cases, I’ve found it to be especially useful when writing iOS applications in Swift aka working with Optionals.

5 Tips For Power Learning

Eventually, I figured out that if I wanted my brain to be challenged in any way, I had to take learning into my own hands. I've been addicted to learning ever since! Some of my happiest days are when at night, my brain is so full, I cannot process the simplest things (such as someone talking to me!). Here are some tips for learning as you transition to Swift...

Swift: Unit Testing Tips and Tricks

Here are some tips and tricks I learned from writing my unit tests in Swift last week...

Swift: Manipulating Constant Objects

When I think of Constants, I think of objects that cannot be changed at all. In Swift, that is true for basic types like Strings, Ints, Bools, etc, but can get tricky with Objects.

Swift Debugging Tips

One of the most important skills every programmer needs to have is debugging! Ever since I've been working with Swift, I've been definitely off in my coding because Swift is different to debug than my usual Objective-C debugging flow. However, here are a few tips I've picked up recently.

Swift: Why You Should Love Default Parameter Values

So one of my current favorite features of Swift is the ability to set default parameter values in functions. That's because default parameter values make it very painless to add additional parameters to an existing function...