Created
May 23, 2017 16:17
-
-
Save brockboland/d5f001d5f7b6f67c5030652cc6ace370 to your computer and use it in GitHub Desktop.
Instance method reference on class
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 | |
class Foo { | |
private let someID: String | |
init() { | |
self.someID = UUID().uuidString | |
} | |
func getID() -> String { | |
return someID | |
} | |
} | |
let str = "Function? \(Foo.getID(Foo()))" | |
let otherStr = "Value! \(Foo.getID(Foo())())" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment