         }
     }
     
+    // MARK: - Lifecycle
+    
     override func viewWillAppear(_ animated: Bool) {
         super.viewWillAppear(animated)
     }

        }
        
        // Playback recorded performence
        if self.state != ChirpJamModes.recording {
            if let recordView = self.recordView {
                if let performance = recordView.performance {
                    performance.playback(inView: self.recordView!)
                    recordView.playing = true
                }
            }
        }
    }

import UIKit
import DropDown

let RECORDING_TIME = 5.0

// TODO: how to tell between loaded and saved and just loaded?

class ChirpJamViewController: UIViewController, UIDocumentInteractionControllerDelegate {
    /// Maximum allowed recording time.
    var state = ChirpJamModes.new
    var newPerformance : Bool = true
    var jamming : Bool = false
