{"id":21619068,"url":"https://github.com/bannzai/segueaddition","last_synced_at":"2025-04-11T08:42:56.179Z","repository":{"id":62455122,"uuid":"56515210","full_name":"bannzai/SegueAddition","owner":"bannzai","description":"Easily way to write perfromSegueWithIdentifier.","archived":false,"fork":false,"pushed_at":"2018-08-30T00:10:44.000Z","size":26,"stargazers_count":44,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-06T05:00:02.652Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Swift","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/bannzai.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}},"created_at":"2016-04-18T14:34:42.000Z","updated_at":"2022-02-14T10:54:02.000Z","dependencies_parsed_at":"2022-11-02T00:00:43.704Z","dependency_job_id":null,"html_url":"https://github.com/bannzai/SegueAddition","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bannzai%2FSegueAddition","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bannzai%2FSegueAddition/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bannzai%2FSegueAddition/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bannzai%2FSegueAddition/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bannzai","download_url":"https://codeload.github.com/bannzai/SegueAddition/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248362518,"owners_count":21091145,"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":[],"created_at":"2024-11-24T23:07:48.709Z","updated_at":"2025-04-11T08:42:56.151Z","avatar_url":"https://github.com/bannzai.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"## SegueAddition\nEasily way to write perfromSegue(withIdentifier:sender).\n\n## Usage\nYou can call `performSegue` with closure.\n\n```swift\nlet customString = \"CustomString\"\nperformSegue(\"SegueIdentfiier\") { segue in\n  guard let toViewController = segue.destinationViewController as? CustomViewController else {\n    fatalError()\n  }\n  toViewController.string = customString\n}\n```\n\nIt has the same meaning.\n```swift\n...\nlet customString = \"CustomString\"\nperformSegueWithIdentifier(\"SegueIdentfiier\", sender: customString)\n...\n\noverride func prepare(for segue: UIStoryboardSegue, sender: Any?) {\n  guard let toViewController = segue.destinationViewController as? CustomViewController,\n            customString = sender as? String\n        where segue.identifier == \"SegueIdentfiier\"\n        else {\n            fatalError()\n        }\n        toViewController.string = customString\n}\n```\n\nSo, no need to write `prepare(for segue: UIStoryboardSegue, sender: Any?)` again.\nAnd, It is read and write easy for perform segue event and passing value to next view controller.\n\n## LICENSE\n[SegueAddition](https://github.com/bannzai/SegueAddition) is released under the MIT license. See LICENSE for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbannzai%2Fsegueaddition","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbannzai%2Fsegueaddition","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbannzai%2Fsegueaddition/lists"}