remove test code

This commit is contained in:
panxi 2019-11-25 11:45:01 -05:00
parent faf98a135d
commit 4d0e3b651e

View File

@ -57,9 +57,7 @@ class DetailViewController: UIViewController {
@objc func play() {
do {
let decoder = JSONDecoder()
if let data = textView.text.data(using: .utf8), let jsonObject = try JSONSerialization.jsonObject(with: data, options: []) as? [AnyHashable: Any] {
let pageModel = try decoder.decode(PageModel.self, from: data)
let page = jsonObject.optionalDictionaryForKey(KeyPage)
let pageType = page?.optionalStringForKey(KeyPageType)
let template = page?.optionalStringForKey("template")