I have an iOS 7 application that saves a custom object to app\'s iCloud Docs folder as a file. For this, I make use of NSCoding protocol.
@interface Person : NSO
If the name of the class in Objective-C is important, you need to explicitly specify the name. Otherwise, Swift will provide some mangled name.
@objc(Person) class PersonOldVersion: NSObject, NSCoding { var name = "" var lastName = "" }