Access control in Swift with example