Naming convention for Private Properties

Viewed 2016

I've seen underscore used as a prefix for private properties

private var _aPrivateVar: String = "I am private"

I've seen them not used

private var aPrivateVar: String = "I am private"

Syntactically, it makes no difference and my preference is to not use them. However, what's the accepted convention in Swift so that I pick the right habit up?

1 Answers
Related