HausClock
HausClock copied to clipboard
Create Basic App
All business logic is in ViewController.swift
So yeah, broadly speaking I think you should have a TimeView class of some sort that knows how to display the remaining time and can report button presses to your view controller via a delegate pattern or something. There is prooobably too much logic in your ViewController right now (an extremely common antipattern of which i am often guilty). There is a good blog post on how you can mitigate this here: http://khanlou.com/2014/09/8-patterns-to-help-you-destroy-massive-view-controller/