Skip to content

Instantly share code, notes, and snippets.

@laevandus
Last active Nov 4, 2018
Embed
What would you like to do?
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