4 "summary": "Locatable is a micro framework that leverages Property Wrappers to implement the Service Locator pattern, through a custom attribute @Locatable",
5 "description": "Locatable is a Swift micro framework that leverages Property Wrappers to implement the Service Locator pattern, through a custom attribute `@Locatable`.\n\nHere's an example of how it can be used:\n\nprotocol Servicing {\n func action()\n}\n\nclass Service: Servicing {\n func action() {\n print(\"I'm performing a service 😊\")\n }\n}\n\nLocator.register(Servicing.self, { return Service() })\n\nclass MyController {\n @Locatable var service: Servicing\n \n func work() {\n self.service.action()\n }\n}\n\nlet controller = MyController()\n\ncontroller.work() // I'm performing a service 😊",
6 "homepage": "https://github.com/vincent-pradeilles/locatable",
12 "Vincent Pradeilles": "vin.pradeilles+locatable@gmail.com"
15 "git": "https://github.com/vincent-pradeilles/locatable.git",
18 "swift_versions": "5.1",
22 "frameworks": "Foundation",
23 "source_files": "Locatable/Locatable/**/*.swift",
24 "swift_version": "5.1"