Posted on September 14th, 2014 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. I’ll use my demo SeinfeldQuotes app as an illustration of this. The App has a screen for displaying all Seinfeld
![Swift: Using MVVM To Work With Optionals](https://cdn-ak-scissors.b.st-hatena.com/image/square/2c451ebb2453d3e103d5a538d5b993a282607fb7/height=288;version=1;width=512/http%3A%2F%2Fnatashatherobot.com%2Fwp-content%2Fuploads%2FiOS-Simulator-Screen-Shot-Sep-14-2014-12.48.17-PM-575x1024.png)