Skip to content

Instantly share code, notes, and snippets.

View jose-ibanez's full-sized avatar

Jose Ibanez jose-ibanez

View GitHub Profile
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"