//
//  ViewController.swift
//  Notepad
//
//  Created by Rudd Fawcett on 10/14/16.
//  Copyright © 2016 Rudd Fawcett. All rights reserved.
//

import UIKit

class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        let editor = Notepad(self.view.bounds, themeFile: "one-dark")
        
        let testFile = Bundle.main.path(forResource: "tests", ofType: "md")
        do {
            let text = try String(contentsOfFile: testFile!)
            editor.text = text
        } catch {
            print(error)
        }
        
        editor.textContainerInset = UIEdgeInsetsMake(40, 20, 40, 20)
        self.view.addSubview(editor)
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }

}


//
//  ViewController.swift
//  Notepad
//
//  Created by Rudd Fawcett on 10/14/16.
//  Copyright © 2016 Rudd Fawcett. All rights reserved.
//

import UIKit

class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        let editor = Notepad(self.view.bounds, themeFile: "blues-clues")
        
        let testFile = Bundle.main.path(forResource: "tests", ofType: "md")
        do {
            let text = try String(contentsOfFile: testFile!)
            editor.text = text
        } catch {
            print(error)
        }
        
        editor.textContainerInset = UIEdgeInsetsMake(40, 20, 40, 20)
        self.view.addSubview(editor)
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }

}


--- 
+++ 
@@ -13,7 +13,7 @@
     override func viewDidLoad() {
         super.viewDidLoad()
 
-        let editor = Notepad(self.view.bounds, themeFile: "blues-clues")
+        let editor = Notepad(self.view.bounds, themeFile: "one-dark")
         
         let testFile = Bundle.main.path(forResource: "tests", ofType: "md")
         do {
Reset default theme in example
