Skip to content

Instantly share code, notes, and snippets.

@laevandus
Last active November 4, 2018 04:14
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 laevandus/8945f6542706c9bd23fc483127f27dc6 to your computer and use it in GitHub Desktop.
Save laevandus/8945f6542706c9bd23fc483127f27dc6 to your computer and use it in GitHub Desktop.
final class Note {
init(topic: String, text: String) {
self.topic = topic
self.text = text
}
var topic: String = "" {
didSet {
print("Topic changed to \(topic).")
}
}
var text: String = "" {
didSet {
print("Text changed to \(text).")
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment