Skip to content

Instantly share code, notes, and snippets.

@vialyx
Created October 7, 2018 16:33
Show Gist options
  • Save vialyx/ec1f56dd952c2618b00f0a8f23b9f4ff to your computer and use it in GitHub Desktop.
Save vialyx/ec1f56dd952c2618b00f0a8f23b9f4ff to your computer and use it in GitHub Desktop.
struct Pin {
var value: String {
willSet {
print("new pin value: \(newValue)")
}
didSet {
print("old pint value: \(oldValue)")
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment