This is just a coding style that should not be applied to Swift code.
Developers often mark things with underlines to indicate that they should be private.
However, a practical application for underlining _. Read more about Local and external parameter names for methods .
So how do you avoid using _selected? Right now, you have two variables, when you already have the one you need (selected).
Deleting _ will require you to override the member variable (how to do this).
override var selected: Bool {
didSet {
println("Hello, \(selected)")
}
}
, setSelected (: ), .