Skip to content

Instantly share code, notes, and snippets.

@andrehsouza
Created July 4, 2018 20:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andrehsouza/6bb5ebe7ae532ecfbb6738653a3a103d to your computer and use it in GitHub Desktop.
Save andrehsouza/6bb5ebe7ae532ecfbb6738653a3a103d to your computer and use it in GitHub Desktop.
import Foundation
protocol DescribeProtocol: class { }
extension DescribeProtocol where Self: NSObject {
static var objectName: String {
return String(describing: self)
}
}
extension NSObject: DescribeProtocol { }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment