Structs as namespace IMO the best way to deal with that type of constants is to create a Struct. struct Constants { static let someNotification = "TEST" } Then, for example, call it like this in your code: print(Constants.someNotification) Nesting If you want a better organization I advise you to use segmented sub structs struct K { struct NotificationKey { static let Welcome = "kWelcomeNotif" } s