This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
/* | |
I'm not sure why `@NSCopying` doesn't seem to be copying the object in the example below. | |
I'm attempting to write code that follows the "initialization with a configuration object" pattern, like `NSURLSession`. | |
Ideally the configuration would be a struct, but since I'm still interoperating with Obj-C that's not an option. | |
*/ | |
class Foo : NSObject, NSCopying { | |
var bar = "bar" |