In some places we could perform the same action with less code, making it easier to read and understand. This pull request aims to clean up the code slightly by making these improvements. It also includes some Swift 3 improvements such as changing functions to properties where appropriate. Lastly it removes some force unwrapping being done in places where it is not required. These have been changed to optional, for safety.
Cleanup
In some places we could perform the same action with less code, making it easier to read and understand. This pull request aims to clean up the code slightly by making these improvements. It also includes some Swift 3 improvements such as changing functions to properties where appropriate. Lastly it removes some force unwrapping being done in places where it is not required. These have been changed to optional, for safety.