Skip to content

Instantly share code, notes, and snippets.

@boudhayan
Created May 26, 2019 16:14
Show Gist options
  • Select an option

  • Save boudhayan/7b0054d199bfafa5148c3ba3344e5012 to your computer and use it in GitHub Desktop.

Select an option

Save boudhayan/7b0054d199bfafa5148c3ba3344e5012 to your computer and use it in GitHub Desktop.
class Company: NSCopying {
var name: String = "Confidential"
func copy(with zone: NSZone? = nil) -> Any {
let copy = Company()
copy.name = name
return copy
}
deinit {
print("Deinitializing Company")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment