{"id":15037808,"url":"https://github.com/abdullahselek/viperc","last_synced_at":"2025-04-09T23:33:02.541Z","repository":{"id":18405011,"uuid":"84210873","full_name":"abdullahselek/ViperC","owner":"abdullahselek","description":"Xcode template for VIPER Architecture for both Objective-C and Swift.","archived":false,"fork":false,"pushed_at":"2024-05-14T10:54:54.000Z","size":1636,"stargazers_count":80,"open_issues_count":0,"forks_count":24,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-24T01:23:00.591Z","etag":null,"topics":["ios","objective-c","quick","swift","swift-3","swift-4","viper","viper-architecture","xcode-templates","xctest"],"latest_commit_sha":null,"homepage":"","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/abdullahselek.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-03-07T14:49:43.000Z","updated_at":"2024-08-02T17:44:50.000Z","dependencies_parsed_at":"2024-01-05T20:22:52.599Z","dependency_job_id":"4bf9f19c-c2f2-4dc0-9899-ad05bd3bb48e","html_url":"https://github.com/abdullahselek/ViperC","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdullahselek%2FViperC","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdullahselek%2FViperC/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdullahselek%2FViperC/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdullahselek%2FViperC/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abdullahselek","download_url":"https://codeload.github.com/abdullahselek/ViperC/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248129974,"owners_count":21052671,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ios","objective-c","quick","swift","swift-3","swift-4","viper","viper-architecture","xcode-templates","xctest"],"created_at":"2024-09-24T20:35:48.112Z","updated_at":"2025-04-09T23:33:02.475Z","avatar_url":"https://github.com/abdullahselek.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"![License](https://img.shields.io/dub/l/vibe-d.svg)\n\n![ViperC](https://raw.githubusercontent.com/abdullahselek/ViperC/master/images/viperc_header.png)\n\n# ViperC\nXcode template for VIPER Architecture for both Objective-C and Swift.\n\n- ViperC creates modules for you when you want to use VIPER architecture in your projects. You can choose your language for the VIPER modules that will be created.\n\n## Installation\n\n- Clone this repository\n- Go to repository main folder\n- ```./install.sh ViperC``` installs ViperC module for Objective-C or Swift.\n- ```./install.sh ViperC-Quick``` installs ViperC unit tests module for Objective-C or Swift. It uses **Quick** and **Expecta** for Objective-C and **Quick** and **Nimble** for Swift.\n- ```./install.sh ViperC-XCTest``` installs ViperC unit tests module for Objective-C or Swift. It uses default **XCTest**.\n\n## Template Path\n\nYou can find ViperC under ```/Users/USER_NAME/Library/Developer/Xcode/Templates/File Templates/ViperC/ViperC.xctemplate```\n\n## Usage\n\n![ViperC Demo](https://raw.githubusercontent.com/abdullahselek/ViperC/master/images/demo.gif)\n\n\n## VIPER Diagram\n\n![VIPER](https://raw.githubusercontent.com/abdullahselek/ViperC/master/images/viper.png)\n\n## Generated Source Code\n\nExample for a ToDO module:\n\n### Protocols\n\n```\n#pragma mark - WireFrameProtocol\n\n@protocol ToDoWireframeProtocol \u003cNSObject\u003e\n\n@end\n\n#pragma mark - PresenterProtocol\n\n@protocol ToDoPresenterProtocol \u003cNSObject\u003e\n\n@end\n\n#pragma mark - InteractorProtocol\n\n@protocol ToDoInteractorOutputProtocol \u003cNSObject\u003e\n\n@end\n\n@protocol ToDoInteractorInputProtocol \u003cNSObject\u003e\n\n- (void)setOutput:(id\u003cToDoInteractorOutputProtocol\u003e)output;\n- (id\u003cToDoInteractorOutputProtocol\u003e)getOutputProtocol;\n\n@end\n\n#pragma mark - ViewProtocol\n\n@protocol ToDoViewProtocol \u003cNSObject\u003e\n\n@end\n```\n\n### Interactor\n\n```\nNS_ASSUME_NONNULL_BEGIN\n\n@interface ToDoInteractor: NSObject\u003cToDoInteractorInputProtocol\u003e\n\n@property (nonatomic, weak, nullable) id\u003cToDoInteractorOutputProtocol\u003e output;\n\n@end\n\nNS_ASSUME_NONNULL_END\n```\n\n### Presenter\n\n```\nNS_ASSUME_NONNULL_BEGIN\n\n@interface ToDoPresenter: NSObject\u003cToDoInteractorOutputProtocol\u003e\n\n@property (nonatomic, weak, nullable) id\u003cToDoViewProtocol\u003e view;\n@property (nonatomic) id\u003cToDoInteractorInputProtocol\u003e interactor;\n@property (nonatomic, weak) id\u003cToDoWireframeProtocol\u003e router;\n\n- (instancetype)initWithInterface:(id\u003cToDoViewProtocol\u003e)interface\n                       interactor:(id\u003cToDoInteractorInputProtocol\u003e)interactor\n                           router:(id\u003cToDoWireframeProtocol\u003e)router;\n\n@end\n\nNS_ASSUME_NONNULL_END\n```\n\n### WireFrame\n\n```\n@interface ToDoRouter: NSObject\u003cToDoWireframeProtocol\u003e\n\n@property (nonatomic, weak) ToDoViewController *viewController;\n\n+ (UIViewController *)createModule;\n\n@end\n```\n\n### View\n\n```\nNS_ASSUME_NONNULL_BEGIN\n\n@interface ToDoViewController: UIViewController\u003cToDoViewProtocol\u003e\n\n@property (nonatomic) ToDoPresenter *presenter;\n\n@end\n\nNS_ASSUME_NONNULL_END\n```\n\n## License\n\nViperC is released under the MIT license. See LICENSE for details.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabdullahselek%2Fviperc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabdullahselek%2Fviperc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabdullahselek%2Fviperc/lists"}