An open API service indexing awesome lists of open source software.

https://github.com/possen/placeviewcontroller

How to have a UIViewController without using implicit unwrap for instance variables.
https://github.com/possen/placeviewcontroller

implicit-unwraps ios swift uiviewcontroller

Last synced: 3 months ago
JSON representation

How to have a UIViewController without using implicit unwrap for instance variables.

Awesome Lists containing this project

README

        

# PlaceViewController
Sample app of how to have a UIViewController without using implicit unwrap for instance variables. I am calling it the `Place`
pattern, it gives you a place to put your instance variables,

Advantages:

* Implicit unwraps are potentially going to crash.
* It can help with closures so you don't need to access `self`.
* Not much more effort than using `self`.
* Avoids the problem of ordering your initializers where the only reason you are making it implicitly unwrapped.