It is not a convention, it is a major difference.
The difference is that computed var (first option) is evaluated each time the var is accessed. So it can change on the fly. The second option is initialised once for all.
Consider the simple case:
var myVar: Int {
(0...10).randomElement()!
}
var myVar2 = (0...10).randomElement()!
for _ in 0...3 {
print(myVar, myVar2)
}
You get:
5 4
1 4
4 4
7 4
Topic:
Programming Languages
SubTopic:
Swift