{"id":21903923,"url":"https://github.com/hansemannn/ios12-carplay-example","last_synced_at":"2025-04-15T20:45:19.025Z","repository":{"id":142791151,"uuid":"138149332","full_name":"hansemannn/iOS12-CarPlay-Example","owner":"hansemannn","description":"An example of using the CarPlay framework in iOS 12 and later.","archived":false,"fork":false,"pushed_at":"2018-07-30T13:14:38.000Z","size":68,"stargazers_count":50,"open_issues_count":0,"forks_count":15,"subscribers_count":15,"default_branch":"master","last_synced_at":"2025-03-29T01:12:13.404Z","etag":null,"topics":["carplay","example","ios12","xcode10"],"latest_commit_sha":null,"homepage":null,"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/hansemannn.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":"2018-06-21T09:28:38.000Z","updated_at":"2024-05-25T13:24:10.000Z","dependencies_parsed_at":"2023-04-15T19:31:19.275Z","dependency_job_id":null,"html_url":"https://github.com/hansemannn/iOS12-CarPlay-Example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hansemannn%2FiOS12-CarPlay-Example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hansemannn%2FiOS12-CarPlay-Example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hansemannn%2FiOS12-CarPlay-Example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hansemannn%2FiOS12-CarPlay-Example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hansemannn","download_url":"https://codeload.github.com/hansemannn/iOS12-CarPlay-Example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249152619,"owners_count":21221276,"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":["carplay","example","ios12","xcode10"],"created_at":"2024-11-28T15:30:15.246Z","updated_at":"2025-04-15T20:45:19.011Z","avatar_url":"https://github.com/hansemannn.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# iOS 12 CarPlay Example\n\nAn example of using the CarPlay framework in iOS 12 and later.\n\n## Summary\n\nThis sample project uses the `CarPlay` framework to start a simple navigation session\nfrom your existing project. It utilizes the `CPApplicationDelegate` to connect to your\ncar, `CPInterfaceController` to attach your view controller and `CPMapTemplate` to show\nand example template as part of the \"root template\" of the controller.\n\n## Notes\n\nSome general hints I have noticed so far:\n\n- CarPlay works primarily in \"templates\", not \"views\" or \"controllers\". It means that you\ncannot design your CarPlay screen like you would design your iOS app, but you need to provide\ninformation that is then displayed in the related template.\n- The connection is done via the `CPApplicationDelegate` delegate that inherits from the\n`UIApplicationDelegate`, so you usually handle it as part of your main app-delegate class.\n- Once connected, you can push and pop templates like you would do with view controllers\n- Data can be used by shared frameworks, networking or general persistence layer. In this\nexample, I simply persist an encoded dictionary of latitude and longitude pairs in the\n`UserDefaults` and grab it for my CarPlay connection once ready.\n\n## More?\n\nLet me know if you have further questions! As of for now, this is a tiny example to get your\nhead around the whole framework, but it can be extended to show other template types like\nlists, grids and UI elements like alerts and notifications.\n\n\n## Author\n\nHans Knöchel ([@hansemannnn](https://twitter.com/hansemannnn) / [Web](http://hans-knoechel.de))\n\n## License\n\nMIT\n\n## Contributing\n\nCode contributions are greatly appreciated, please submit a new [Pull-Request](https://github.com/hansemannn/iOS12-CarPlay-Example/pull/new/master)!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhansemannn%2Fios12-carplay-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhansemannn%2Fios12-carplay-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhansemannn%2Fios12-carplay-example/lists"}