Skip to content

Instantly share code, notes, and snippets.

@Biacco42
Last active November 8, 2017 11:07
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 Biacco42/4b43e054ce9e4bccb5ef76464cc1282a to your computer and use it in GitHub Desktop.
Save Biacco42/4b43e054ce9e4bccb5ef76464cc1282a to your computer and use it in GitHub Desktop.
class Po {
var po: String
init(po: String) {
self.po = po
}
static func ponction() -> Po {
return Po(po: "Po is Po")
}
}
let po: Po = .ponction()
print(po.po)
// Example
DispatchQueue.main.asyncAfter(deadline: .now() + 0.1) {
// ^^^^^ DispatchTime 型名が省略されている
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment