Lifetime, Scope and Namespaces in Swift In this article, we are going to look at the different options we have available in Swift for organising our code before looking at the closely related concepts of lifetime, scope and namespaces.