//
//  SWTrackModel.swift
//  swift_tutorial
//
//  Created by JonghyunKim on 5/23/16.
//  Copyright © 2016 kokaru.com. All rights reserved.
//

import Foundation
import RealmSwift

class SWTrackModel : Object {
    
    dynamic var trackName = ""
    dynamic var trackId = ""
    dynamic var artistName = ""

}

//
//  SWTrackModel.swift
//  swift_tutorial
//
//  Created by JonghyunKim on 5/23/16.
//  Copyright © 2016 kokaru.com. All rights reserved.
//

import Foundation

class SWTrackModel : NSObject {
    
    dynamic var trackName = ""
    dynamic var trackId = ""
    dynamic var artistName = ""

}

--- 
+++ 
@@ -7,8 +7,9 @@
 //
 
 import Foundation
+import RealmSwift
 
-class SWTrackModel : NSObject {
+class SWTrackModel : Object {
     
     dynamic var trackName = ""
     dynamic var trackId = ""
Add to RealmSwift  and fix a parent class.
