Why You Should Default to Private Outlets
Автор: Cocoacasts
Загружено: 2020-10-15
Просмотров: 257
Описание:
I love that access control is an integral component of the Swift programming language. Access control lets you carefully control what properties and methods an entity exposes. Rigorously applying access control has significant benefits. You can even improve performance through access control.
Even though we agree that access control is great, outlets seem to fall in a different category. Most developers seem to overlook outlets when it comes to access control and don't question the code Xcode generates for them.
An entity without an explicit access level automatically receives the internal access level. A property or method with an internal access level can be accessed by other objects within the same module. Should that be the default?
Read the post on Cocoacasts.
https://cocoacasts.com/tips-and-trick...
Повторяем попытку...

Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: