Skip to content

Instantly share code, notes, and snippets.

@ezura
Created May 19, 2017 13:46
Show Gist options
  • Select an option

  • Save ezura/1b3073ec2a7a6fd6c6b83d5f4d3d1b57 to your computer and use it in GitHub Desktop.

Select an option

Save ezura/1b3073ec2a7a6fd6c6b83d5f4d3d1b57 to your computer and use it in GitHub Desktop.
string literal の方が妥当な気がする #swift #CodePiece
class Type: NSObject {
let value = 1
}
let staticString: StaticString = #keyPath(Type.value)
let string: String = #keyPath(Type.value)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment